Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 55.92 kB / 373 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 53.33 MB / 426.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005417/0.1164, allocations: 4.117 MB / 430.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2081/0.3246, allocations: 0.9644 MB / 431.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003399/0.3249, allocations: 11.53 kB / 431.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002523/0.3252, allocations: 94.8 kB / 431.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003559/0.3255, allocations: 187.2 kB / 431.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.3259, allocations: 157.7 kB / 431.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006243/0.3265, allocations: 0.6731 MB / 432.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.3268, allocations: 147.3 kB / 432.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003598/0.3271, allocations: 275.3 kB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002733/0.3274, allocations: 290.3 kB / 433.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.3275, allocations: 54.62 kB / 433.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.3276, allocations: 64.69 kB / 433.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.102e-05/0.3277, allocations: 129.8 kB / 433.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.3279, allocations: 308.7 kB / 433.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.3285, allocations: 0.6449 MB / 434.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3285, allocations: 0 / 434.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3285, allocations: 3.938 kB / 434.4 MB, free: 7.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.3285, allocations: 0.5156 kB / 434.4 MB, free: 7.086 MB / 350.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.001304/0.3298, allocations: 0.883 MB / 435.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3298, allocations: 9.688 kB / 435.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001332/0.33, allocations: 104 kB / 435.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002838/0.3303, allocations: 87.42 kB / 435.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.3308, allocations: 392.3 kB / 435.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.3308, allocations: 42.44 kB / 435.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.665e-05/0.3309, allocations: 52.45 kB / 436 MB, free: 6.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008052/0.3317, allocations: 0.4949 MB / 436.5 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.3317, allocations: 4.438 kB / 436.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.361e-05/0.3317, allocations: 25.06 kB / 436.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.3318, allocations: 13.12 kB / 436.5 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006161/0.3324, allocations: 338.1 kB / 436.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002509/0.3349, allocations: 1.724 MB / 438.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.3353, allocations: 245.4 kB / 438.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.3355, allocations: 130.8 kB / 439 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.3355, allocations: 4.141 kB / 439 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.3356, allocations: 49.44 kB / 439 MB, free: 4.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.3356, allocations: 1.188 kB / 439 MB, free: 4.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.001723/0.3373, allocations: 0.9716 MB / 440 MB, free: 4.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.3373, allocations: 83.47 kB / 440.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/0.3377, allocations: 387 kB / 440.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.3377, allocations: 30.89 kB / 440.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.3379, allocations: 305.1 kB / 440.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.06e-05/0.338, allocations: 122.5 kB / 440.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.3381, allocations: 79.28 kB / 441 MB, free: 3.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.491e-05/0.3381, allocations: 348.6 kB / 441.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.3383, allocations: 100.6 kB / 441.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.3386, allocations: 196.9 kB / 441.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004132/0.339, allocations: 303.1 kB / 441.9 MB, free: 2.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.339, allocations: 2.312 kB / 441.9 MB, free: 2.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007687/0.3398, allocations: 449.5 kB / 442.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.3398, allocations: 9.734 kB / 442.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.3398, allocations: 6.594 kB / 442.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003498/0.3401, allocations: 86.11 kB / 442.4 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003561/0.3405, allocations: 78.17 kB / 442.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.3425, allocations: 3.128 MB / 445.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.3428, allocations: 21 kB / 445.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.3428, allocations: 16.2 kB / 445.7 MB, free: 15.29 MB / 366.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.0002156/0.3431, allocations: 165 kB / 445.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.822e-05/0.3432, allocations: 50.58 kB / 445.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.574e-05/0.3433, allocations: 42.69 kB / 445.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.3433, allocations: 3.125 kB / 445.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3433, allocations: 10.16 kB / 445.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3433, allocations: 1.781 kB / 445.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.3448, allocations: 0.9533 MB / 446.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3448, allocations: 0 / 446.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.3449, allocations: 50.03 kB / 446.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002725/0.3452, allocations: 78.2 kB / 447 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.3452, allocations: 7.578 kB / 447 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/0.348, allocations: 3.123 MB / 450.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.348, allocations: 5.031 kB / 450.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009925/0.349, allocations: 0.6223 MB / 450.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.3491, allocations: 116.4 kB / 450.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.99e-05/0.3491, allocations: 8.078 kB / 450.9 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003365/0.3495, allocations: 30.77 kB / 450.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.963e-05/0.3495, allocations: 29.12 kB / 451 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.3496, allocations: 8.25 kB / 451 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003509/0.3499, allocations: 277.7 kB / 451.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3499, allocations: 0 / 451.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006483/0.3506, allocations: 117.7 kB / 451.3 MB, free: 10.69 MB / 366.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.00141/0.352, allocations: 1.166 MB / 452.5 MB, free: 9.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.3529, allocations: 0.4994 MB / 453 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3529, allocations: 0 / 453 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.3536, allocations: 380.6 kB / 453.4 MB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.3541, allocations: 66 kB / 453.5 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006384/0.3604, allocations: 4.218 MB / 457.7 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/0.361, allocations: 0.8511 MB / 458.5 MB, free: 5.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.3612, allocations: 44.86 kB / 458.6 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.3615, allocations: 174.4 kB / 458.7 MB, free: 5.668 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3615, allocations: 0 / 458.7 MB, free: 5.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05939/0.4209, allocations: 9.122 MB / 467.9 MB, free: 2.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.982/10.4, allocations: 5.328 kB / 467.9 MB, free: 2.32 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_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: 14.967319424031302]