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.001151/0.001151, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 247.4 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 72.53 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09372, allocations: 50.53 MB / 358.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005666/0.09943, allocations: 4.11 MB / 362.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.1013, allocations: 0.9463 MB / 363.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.1017, allocations: 19.94 kB / 363.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.1021, allocations: 95.06 kB / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004615/0.1025, allocations: 166.4 kB / 363.5 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004588/0.103, allocations: 171.7 kB / 363.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007612/0.1038, allocations: 0.6732 MB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.1041, allocations: 207 kB / 364.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003977/0.1045, allocations: 263 kB / 364.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003818/0.1049, allocations: 294.6 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.105, allocations: 56 kB / 365.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.1052, allocations: 56 kB / 365.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.1053, allocations: 127.5 kB / 365.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.1056, allocations: 306.4 kB / 365.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000598/0.1062, allocations: 0.6463 MB / 366.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.452e-05/0.1063, allocations: 4 kB / 366.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1063, allocations: 0 / 366.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.1063, allocations: 0 / 366.3 MB, free: 5.953 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.001509/0.1078, allocations: 0.8611 MB / 367.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1078, allocations: 8.031 kB / 367.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003105/0.1082, allocations: 84.16 kB / 367.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.1086, allocations: 379.6 kB / 367.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.306e-05/0.1087, allocations: 41.38 kB / 367.6 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.012e-05/0.1088, allocations: 48.38 kB / 367.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007768/0.1095, allocations: 475.5 kB / 368.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1096, allocations: 0 / 368.1 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.1096, allocations: 20 kB / 368.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1096, allocations: 12 kB / 368.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006197/0.1103, allocations: 344.2 kB / 368.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002671/0.113, allocations: 1.705 MB / 370.2 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.1134, allocations: 267.5 kB / 370.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002214/0.1136, allocations: 137.7 kB / 370.6 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.1137, allocations: 8.312 kB / 370.6 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.1137, allocations: 42.55 kB / 370.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.1137, allocations: 0 / 370.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001851/0.1156, allocations: 0.9493 MB / 371.6 MB, free: 304 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.1156, allocations: 85.09 kB / 371.7 MB, free: 200 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1473/0.263, allocations: 376.8 kB / 372 MB, free: 20.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.698e-05/0.2631, allocations: 33.94 kB / 372.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.2633, allocations: 287.8 kB / 372.4 MB, free: 19.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.506e-05/0.2634, allocations: 121.9 kB / 372.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.2635, allocations: 71.64 kB / 372.5 MB, free: 19.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.985e-05/0.2636, allocations: 355.2 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.2639, allocations: 100.3 kB / 373 MB, free: 19.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.2642, allocations: 193.5 kB / 373.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004551/0.2646, allocations: 311.1 kB / 373.5 MB, free: 19.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2646, allocations: 1.188 kB / 373.5 MB, free: 19.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008777/0.2655, allocations: 446.8 kB / 373.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.2656, allocations: 6.031 kB / 373.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.2656, allocations: 4.25 kB / 373.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.266, allocations: 84.38 kB / 374 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.2663, allocations: 81.5 kB / 374.1 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/0.2683, allocations: 3.122 MB / 377.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002946/0.2686, allocations: 21.05 kB / 377.2 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.2687, allocations: 17.55 kB / 377.3 MB, free: 16.23 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.0001735/0.2688, allocations: 170.3 kB / 377.4 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-05/0.2689, allocations: 45.89 kB / 377.5 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.631e-05/0.269, allocations: 45.53 kB / 377.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.269, allocations: 4.344 kB / 377.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.269, allocations: 1.281 kB / 377.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.269, allocations: 7.078 kB / 377.5 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.2704, allocations: 0.9354 MB / 378.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2704, allocations: 1.375 kB / 378.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.2706, allocations: 45.44 kB / 378.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002703/0.2709, allocations: 84.05 kB / 378.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.2709, allocations: 8.062 kB / 378.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.2727, allocations: 3.131 MB / 381.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.2727, allocations: 1.734 kB / 381.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008534/0.2736, allocations: 0.619 MB / 382.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.815e-05/0.2737, allocations: 111 kB / 382.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.2737, allocations: 7.547 kB / 382.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.2741, allocations: 31.62 kB / 382.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/0.2742, allocations: 23.88 kB / 382.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.2742, allocations: 16.66 kB / 382.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.2745, allocations: 274 kB / 382.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2745, allocations: 0 / 382.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005874/0.2751, allocations: 116.2 kB / 382.9 MB, free: 11.66 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.0001273/0.2752, allocations: 114.5 kB / 383 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008507/0.2761, allocations: 0.5291 MB / 383.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2761, allocations: 1.906 kB / 383.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000519/0.2766, allocations: 394.1 kB / 383.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.2772, allocations: 57.44 kB / 384 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.2787, allocations: 0.9937 MB / 385 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.279, allocations: 0.8393 MB / 385.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.157e-05/0.2791, allocations: 35.42 kB / 385.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2791, allocations: 0.8438 kB / 385.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of Templates: time 0.01137/0.2905, allocations: 8.956 MB / 394.8 MB, free: 6.57 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches