Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008778/0.0008774, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002795, allocations: 8 kB / 307.7 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 51.53 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004003/0.1242, allocations: 3.734 MB / 363 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1259, allocations: 0.9426 MB / 363.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.1261, allocations: 8 kB / 364 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.1263, allocations: 71.44 kB / 364 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003199/0.1267, allocations: 154.8 kB / 364.2 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.127, allocations: 131.9 kB / 364.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006058/0.1276, allocations: 0.6497 MB / 364.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.1279, allocations: 175.9 kB / 365.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.1283, allocations: 223 kB / 365.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.1285, allocations: 270.6 kB / 365.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.1286, allocations: 39.94 kB / 365.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.1287, allocations: 40 kB / 365.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.619e-05/0.1288, allocations: 95.53 kB / 365.8 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.1291, allocations: 308.1 kB / 366.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005589/0.1297, allocations: 0.6032 MB / 366.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1297, allocations: 4 kB / 366.7 MB, free: 5.797 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1297, allocations: 0 / 366.7 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.1297, allocations: 0 / 366.7 MB, free: 5.797 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001327/0.131, allocations: 0.7833 MB / 367.5 MB, free: 4.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.1311, allocations: 8.031 kB / 367.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003148/0.1314, allocations: 84.17 kB / 367.6 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.1319, allocations: 379.6 kB / 367.9 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/0.132, allocations: 37.38 kB / 368 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.896e-05/0.1321, allocations: 52.38 kB / 368 MB, free: 4.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008528/0.1329, allocations: 483.5 kB / 368.5 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.133, allocations: 3.938 kB / 368.5 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.121e-05/0.133, allocations: 24 kB / 368.5 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.133, allocations: 12 kB / 368.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006592/0.1337, allocations: 340.3 kB / 368.9 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002711/0.1364, allocations: 1.72 MB / 370.6 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005077/0.1369, allocations: 283.3 kB / 370.9 MB, free: 1.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.1372, allocations: 150 kB / 371 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1373, allocations: 4 kB / 371 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.1373, allocations: 42.41 kB / 371 MB, free: 1.203 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.385e-06/0.1373, allocations: 0 / 371 MB, free: 1.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00189/0.1392, allocations: 0.9686 MB / 372 MB, free: 160 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.1393, allocations: 85.05 kB / 372.1 MB, free: 56 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2593/0.3986, allocations: 377 kB / 372.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.3987, allocations: 33.08 kB / 372.5 MB, free: 19.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002697/0.399, allocations: 286.6 kB / 372.8 MB, free: 19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3992, allocations: 118.3 kB / 372.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.29e-05/0.3992, allocations: 40.53 kB / 372.9 MB, free: 18.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3994, allocations: 353.5 kB / 373.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.3997, allocations: 107 kB / 373.4 MB, free: 18.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.4, allocations: 196.1 kB / 373.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005655/0.4006, allocations: 321.7 kB / 373.9 MB, free: 18.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4006, allocations: 1.625 kB / 373.9 MB, free: 18.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001104/0.4017, allocations: 454 kB / 374.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.4018, allocations: 6.25 kB / 374.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.4018, allocations: 6.906 kB / 374.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005036/0.4023, allocations: 85.61 kB / 374.4 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.4027, allocations: 82.53 kB / 374.5 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.4052, allocations: 2.855 MB / 377.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003662/0.4056, allocations: 17.78 kB / 377.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.4056, allocations: 18.38 kB / 377.4 MB, free: 15.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002552/0.4059, allocations: 170.4 kB / 377.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.406, allocations: 41.44 kB / 377.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.4061, allocations: 44.02 kB / 377.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.4061, allocations: 4.094 kB / 377.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/0.4061, allocations: 5.469 kB / 377.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.4062, allocations: 2.828 kB / 377.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.4079, allocations: 0.9406 MB / 378.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.4079, allocations: 6.078 kB / 378.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.4081, allocations: 48.23 kB / 378.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002821/0.4084, allocations: 82.62 kB / 378.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.4084, allocations: 12.5 kB / 378.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001913/0.4104, allocations: 2.86 MB / 381.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4104, allocations: 1.094 kB / 381.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009829/0.4114, allocations: 0.6306 MB / 382.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.75e-05/0.4115, allocations: 115.8 kB / 382.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/0.4115, allocations: 7.625 kB / 382.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.4119, allocations: 37.19 kB / 382.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.6e-05/0.412, allocations: 24.19 kB / 382.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.412, allocations: 12.28 kB / 382.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003975/0.4124, allocations: 273 kB / 382.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4124, allocations: 0 / 382.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007242/0.4131, allocations: 115.9 kB / 382.8 MB, free: 11.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001918/0.4133, allocations: 114.6 kB / 382.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009839/0.4143, allocations: 0.5231 MB / 383.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4143, allocations: 1.688 kB / 383.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005548/0.4149, allocations: 399 kB / 383.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005844/0.4155, allocations: 58.16 kB / 383.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.4173, allocations: 1.237 MB / 385.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.4177, allocations: 0.8418 MB / 386 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.4179, allocations: 45.25 kB / 386 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.704e-05/0.418, allocations: 28.47 kB / 386 MB, free: 9.258 MB / 302.1 MB Notification: Performance of SimCode: time 1.153e-06/0.418, allocations: 0 / 386 MB, free: 9.258 MB / 302.1 MB Notification: Performance of Templates: time 0.0126/0.4306, allocations: 4.384 MB / 390.4 MB, free: 8.762 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches