Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008183/0.0008184, allocations: 178.9 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007777/0.0007777, allocations: 98.39 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002745, allocations: 11.92 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1879, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.003499/0.1914, allocations: 4.821 MB / 409.4 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1934, allocations: 2.552 MB / 411.9 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.1936, allocations: 23.94 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004388/0.194, allocations: 266.9 kB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001142/0.1952, allocations: 1.202 MB / 413.4 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.1956, allocations: 320.8 kB / 413.7 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.1961, allocations: 0.7743 MB / 414.5 MB, free: 21.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002241/0.1983, allocations: 2.903 MB / 417.4 MB, free: 17.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.1985, allocations: 294.7 kB / 417.7 MB, free: 17.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.1989, allocations: 438.1 kB / 418.1 MB, free: 17.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.1989, allocations: 36 kB / 418.2 MB, free: 17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003045/0.1992, allocations: 191.8 kB / 418.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.072e-05/0.1993, allocations: 135.4 kB / 418.5 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.1995, allocations: 403.6 kB / 418.9 MB, free: 16.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00066/0.2002, allocations: 1.098 MB / 420 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2002, allocations: 0 / 420 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2002, allocations: 0 / 420 MB, free: 15.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.2002, allocations: 4 kB / 420 MB, free: 15.17 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.00225/0.2025, allocations: 1.19 MB / 421.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.2025, allocations: 11.97 kB / 421.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003786/0.2063, allocations: 0.6555 MB / 421.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.2067, allocations: 420.5 kB / 422.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/0.2068, allocations: 74.31 kB / 422.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-05/0.2069, allocations: 92.38 kB / 422.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.2081, allocations: 0.9902 MB / 423.4 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.2082, allocations: 4 kB / 423.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.2083, allocations: 40 kB / 423.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.2083, allocations: 24 kB / 423.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.2095, allocations: 0.9252 MB / 424.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.2127, allocations: 3.378 MB / 427.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.2142, allocations: 2.245 MB / 430 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003427/0.2146, allocations: 293.3 kB / 430.3 MB, free: 4.207 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.343e-05/0.2146, allocations: 93.66 kB / 430.4 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2147, allocations: 47.06 kB / 430.4 MB, free: 4.039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=65): time 2.064e-06/0.2147, allocations: 0 / 430.4 MB, free: 4.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.001029/0.2157, allocations: 0.7249 MB / 431.2 MB, free: 3.312 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.2158, allocations: 119.6 kB / 431.3 MB, free: 3.172 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/0.2159, allocations: 270.5 kB / 431.6 MB, free: 2.895 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.216, allocations: 37.7 kB / 431.6 MB, free: 2.852 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2161, allocations: 378.6 kB / 432 MB, free: 2.473 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.23e-05/0.2162, allocations: 224.8 kB / 432.2 MB, free: 2.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.717e-05/0.2162, allocations: 16 kB / 432.2 MB, free: 2.234 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.013e-05/0.2163, allocations: 346.8 kB / 432.5 MB, free: 1.887 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.2166, allocations: 225.9 kB / 432.8 MB, free: 1.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.217, allocations: 439.3 kB / 433.2 MB, free: 1.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007118/0.2177, allocations: 0.7028 MB / 433.9 MB, free: 372 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2177, allocations: 4 kB / 433.9 MB, free: 368 kB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001063/0.2188, allocations: 0.7561 MB / 434.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2188, allocations: 11.94 kB / 434.7 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2188, allocations: 4 kB / 434.7 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2188, allocations: 12.56 kB / 434.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006376/0.2195, allocations: 191.7 kB / 434.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.2195, allocations: 19.92 kB / 434.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.2198, allocations: 75.27 kB / 435 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.2199, allocations: 36 kB / 435 MB, free: 15.25 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002392/0.2202, allocations: 229.5 kB / 435.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.2203, allocations: 43.47 kB / 435.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.2214, allocations: 0.6556 MB / 435.9 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.2214, allocations: 8 kB / 435.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2214, allocations: 0 / 435.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.2214, allocations: 7.984 kB / 435.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.2234, allocations: 1.49 MB / 437.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2234, allocations: 3.938 kB / 437.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005306/0.224, allocations: 135.9 kB / 437.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.224, allocations: 4 kB / 437.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.224, allocations: 19.98 kB / 437.6 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.224, allocations: 15.88 kB / 437.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.224, allocations: 0 / 437.6 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.2254, allocations: 1.118 MB / 438.7 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.446e-05/0.2255, allocations: 132.5 kB / 438.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.2256, allocations: 12 kB / 438.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/0.2259, allocations: 27.92 kB / 438.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.8e-05/0.226, allocations: 52.5 kB / 438.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.226, allocations: 20 kB / 438.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001512/0.2262, allocations: 182 kB / 439.1 MB, free: 11 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.253e-06/0.2262, allocations: 0 / 439.1 MB, free: 11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005823/0.2268, allocations: 227.1 kB / 439.3 MB, free: 10.77 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002021/0.227, allocations: 147.2 kB / 439.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008954/0.2279, allocations: 0.6173 MB / 440.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2279, allocations: 1.5 kB / 440.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004103/0.2283, allocations: 311.1 kB / 440.4 MB, free: 9.703 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.2288, allocations: 40.56 kB / 440.5 MB, free: 9.664 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.2307, allocations: 1.663 MB / 442.1 MB, free: 7.953 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.2311, allocations: 0.897 MB / 443 MB, free: 7.027 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003247/0.2314, allocations: 76.39 kB / 443.1 MB, free: 6.953 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.2315, allocations: 55.36 kB / 443.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2315, allocations: 0 / 443.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of Templates: time 0.008001/0.2395, allocations: 4.431 MB / 447.6 MB, free: 2.465 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches