Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001647/0.001647, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00193/0.00193, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 68.92 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.1004, allocations: 50.55 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005955/0.1064, allocations: 4.11 MB / 362.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1083, allocations: 0.9502 MB / 363.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.1086, allocations: 8 kB / 363.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.1089, allocations: 95.06 kB / 363.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003462/0.1092, allocations: 178.4 kB / 363.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.1096, allocations: 163.7 kB / 363.9 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007203/0.1104, allocations: 0.6654 MB / 364.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.1107, allocations: 207 kB / 364.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003652/0.1111, allocations: 267 kB / 365.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003463/0.1115, allocations: 290.6 kB / 365.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.423e-05/0.1116, allocations: 56 kB / 365.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1117, allocations: 64 kB / 365.5 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.1118, allocations: 131.5 kB / 365.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.1121, allocations: 302.5 kB / 365.9 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006714/0.1128, allocations: 0.6424 MB / 366.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1128, allocations: 0 / 366.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1128, allocations: 0 / 366.5 MB, free: 5.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1128, allocations: 0 / 366.5 MB, free: 5.785 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.001469/0.1143, allocations: 0.865 MB / 367.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.1144, allocations: 11.97 kB / 367.4 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000338/0.1147, allocations: 88.17 kB / 367.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000503/0.1152, allocations: 379.6 kB / 367.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.1153, allocations: 37.38 kB / 367.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.1154, allocations: 48.38 kB / 367.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007922/0.1162, allocations: 483.5 kB / 368.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1162, allocations: 0 / 368.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.82e-05/0.1162, allocations: 24 kB / 368.4 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.1162, allocations: 12 kB / 368.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006468/0.1169, allocations: 336.3 kB / 368.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.1197, allocations: 1.697 MB / 370.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004922/0.1202, allocations: 265 kB / 370.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.1205, allocations: 149 kB / 370.9 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.1205, allocations: 4.312 kB / 370.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.1206, allocations: 38.56 kB / 370.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.1206, allocations: 0 / 370.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002008/0.1226, allocations: 0.9588 MB / 371.9 MB, free: 120 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.911e-05/0.1226, allocations: 81.11 kB / 372 MB, free: 20 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1511/0.2737, allocations: 385 kB / 372.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.2738, allocations: 30.83 kB / 372.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.274, allocations: 287.8 kB / 372.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.293e-05/0.2741, allocations: 118.6 kB / 372.8 MB, free: 19.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.2742, allocations: 71.17 kB / 372.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.2743, allocations: 352.6 kB / 373.2 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.2745, allocations: 101.2 kB / 373.3 MB, free: 19.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.2748, allocations: 193 kB / 373.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004526/0.2752, allocations: 308.4 kB / 373.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2752, allocations: 1.938 kB / 373.8 MB, free: 19.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008736/0.2761, allocations: 445.4 kB / 374.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2762, allocations: 9.781 kB / 374.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.2762, allocations: 2.562 kB / 374.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.2765, allocations: 86.42 kB / 374.3 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.2769, allocations: 81.97 kB / 374.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.2788, allocations: 3.119 MB / 377.5 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003177/0.2791, allocations: 17.91 kB / 377.5 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.938e-05/0.2792, allocations: 16.47 kB / 377.5 MB, free: 16.07 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.0001896/0.2794, allocations: 170.1 kB / 377.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.465e-05/0.2795, allocations: 45.38 kB / 377.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.979e-05/0.2795, allocations: 46.88 kB / 377.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.2796, allocations: 9.844 kB / 377.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.2796, allocations: 8.391 kB / 377.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2796, allocations: 1.359 kB / 377.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.2809, allocations: 0.9353 MB / 378.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.281, allocations: 0 / 378.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.2812, allocations: 42.48 kB / 378.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002584/0.2814, allocations: 85.61 kB / 378.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.2815, allocations: 8.344 kB / 378.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.2831, allocations: 3.127 MB / 382 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2831, allocations: 0.9844 kB / 382 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.2839, allocations: 0.614 MB / 382.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.932e-05/0.284, allocations: 117.1 kB / 382.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.2841, allocations: 7.219 kB / 382.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.2844, allocations: 31.39 kB / 382.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/0.2845, allocations: 24.33 kB / 382.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.2845, allocations: 8.578 kB / 382.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000289/0.2848, allocations: 276.9 kB / 383.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2848, allocations: 0 / 383.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006011/0.2854, allocations: 116.5 kB / 383.2 MB, free: 11.5 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.0001238/0.2856, allocations: 112.6 kB / 383.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000855/0.2864, allocations: 0.5237 MB / 383.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2864, allocations: 5.438 kB / 383.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005043/0.287, allocations: 389.7 kB / 384.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005505/0.2875, allocations: 60.72 kB / 384.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.289, allocations: 0.9938 MB / 385.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.2892, allocations: 0.8396 MB / 386.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.1e-05/0.2893, allocations: 32.38 kB / 386.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2893, allocations: 0 / 386.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of Templates: time 0.01193/0.3013, allocations: 8.967 MB / 395.1 MB, free: 6.375 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches