Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 185.7 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 47.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2554, allocations: 52.18 MB / 422.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005424/0.2608, allocations: 4.118 MB / 426.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.263, allocations: 0.8917 MB / 427.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003317/0.2633, allocations: 11.94 kB / 427.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.2636, allocations: 91.08 kB / 427.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003996/0.264, allocations: 190.4 kB / 428 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.2643, allocations: 143.7 kB / 428.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006973/0.265, allocations: 0.6655 MB / 428.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.2653, allocations: 147.7 kB / 428.9 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003293/0.2656, allocations: 267 kB / 429.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003732/0.266, allocations: 294.7 kB / 429.5 MB, free: 7.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.247e-05/0.2661, allocations: 52 kB / 429.5 MB, free: 7.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.975e-05/0.2662, allocations: 56 kB / 429.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.2663, allocations: 131.5 kB / 429.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002927/0.2666, allocations: 302.5 kB / 430 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007222/0.2673, allocations: 0.646 MB / 430.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2673, allocations: 0 / 430.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2673, allocations: 0 / 430.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.2673, allocations: 0 / 430.6 MB, free: 6.586 MB / 334.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.001407/0.2687, allocations: 0.8009 MB / 431.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2688, allocations: 12.03 kB / 431.4 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.2689, allocations: 103.9 kB / 431.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.269, allocations: 68.56 kB / 431.6 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005419/0.2696, allocations: 318 kB / 431.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.2696, allocations: 37.69 kB / 432 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.2697, allocations: 52.38 kB / 432 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008087/0.2705, allocations: 0.5033 MB / 432.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2705, allocations: 0 / 432.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/0.2706, allocations: 20 kB / 432.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.2706, allocations: 12 kB / 432.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006383/0.2712, allocations: 340.4 kB / 432.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.2739, allocations: 1.669 MB / 434.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000446/0.2744, allocations: 245.1 kB / 434.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.2746, allocations: 141.5 kB / 434.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.2746, allocations: 7.938 kB / 434.9 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.2747, allocations: 50.48 kB / 435 MB, free: 2.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.933e-06/0.2747, allocations: 0 / 435 MB, free: 2.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001809/0.2765, allocations: 0.8205 MB / 435.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.2765, allocations: 81.11 kB / 435.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004335/0.277, allocations: 385.6 kB / 436.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.277, allocations: 33.7 kB / 436.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.2772, allocations: 304 kB / 436.6 MB, free: 356 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.2773, allocations: 123 kB / 436.7 MB, free: 232 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.2774, allocations: 78.08 kB / 436.8 MB, free: 148 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.2776, allocations: 346.8 kB / 437.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.2778, allocations: 96.83 kB / 437.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.2781, allocations: 198.6 kB / 437.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004957/0.2786, allocations: 306.7 kB / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.2786, allocations: 0 / 437.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008117/0.2794, allocations: 440.6 kB / 438.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2795, allocations: 8 kB / 438.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.2795, allocations: 8.25 kB / 438.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003424/0.2798, allocations: 85.59 kB / 438.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.2801, allocations: 79.89 kB / 438.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002614/0.2827, allocations: 2.929 MB / 441.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.283, allocations: 16 kB / 441.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.283, allocations: 12 kB / 441.3 MB, free: 11.33 MB / 350.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.0002013/0.2832, allocations: 165.7 kB / 441.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.618e-05/0.2833, allocations: 47.66 kB / 441.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.641e-05/0.2834, allocations: 51.39 kB / 441.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2834, allocations: 8.062 kB / 441.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2834, allocations: 0 / 441.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2834, allocations: 0 / 441.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.2848, allocations: 0.9149 MB / 442.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2848, allocations: 4 kB / 442.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.285, allocations: 47.91 kB / 442.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002622/0.2853, allocations: 77.64 kB / 442.6 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.2853, allocations: 15.92 kB / 442.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002476/0.2878, allocations: 2.924 MB / 445.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2878, allocations: 0 / 445.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009311/0.2887, allocations: 0.6176 MB / 446.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.398e-05/0.2888, allocations: 47.69 kB / 446.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.2888, allocations: 4 kB / 446.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.2892, allocations: 27.98 kB / 446.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.572e-05/0.2892, allocations: 31.94 kB / 446.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.2893, allocations: 11.94 kB / 446.3 MB, free: 6.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003302/0.2896, allocations: 271.2 kB / 446.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2896, allocations: 0 / 446.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005986/0.2902, allocations: 120 kB / 446.6 MB, free: 5.633 MB / 350.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.001369/0.2916, allocations: 1.169 MB / 447.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.2925, allocations: 0.4932 MB / 448.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2925, allocations: 0 / 448.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000615/0.2931, allocations: 381.7 kB / 448.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005048/0.2936, allocations: 61.64 kB / 448.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005866/0.2995, allocations: 4.209 MB / 452.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.3, allocations: 0.8431 MB / 453.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.3002, allocations: 43.3 kB / 453.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.3004, allocations: 171.4 kB / 454 MB, free: 14 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3004, allocations: 0 / 454 MB, free: 14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04393/0.3443, allocations: 9.301 MB / 463.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.03, allocations: 12.39 kB / 463.3 MB, free: 4.879 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 16.571778509998694]