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.001467/0.001467, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001553/0.001553, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.42/1.42, allocations: 225.7 MB / 253.3 MB, free: 13.04 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 47.94 kB / 371.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2563, allocations: 52.18 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005215/0.2615, allocations: 4.129 MB / 427.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.2632, allocations: 0.884 MB / 428.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.2633, allocations: 11.94 kB / 428.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002283/0.2636, allocations: 91.06 kB / 428.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.2639, allocations: 186.4 kB / 428.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.2642, allocations: 143.7 kB / 428.9 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006955/0.2649, allocations: 0.6693 MB / 429.5 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.2652, allocations: 151.7 kB / 429.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.2655, allocations: 263 kB / 430 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003564/0.2658, allocations: 286.7 kB / 430.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.849e-05/0.2659, allocations: 56 kB / 430.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.074e-05/0.266, allocations: 56 kB / 430.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.2661, allocations: 131.5 kB / 430.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002795/0.2664, allocations: 302.4 kB / 430.8 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006697/0.2671, allocations: 0.6504 MB / 431.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2671, allocations: 0 / 431.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2671, allocations: 0 / 431.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.2671, allocations: 4 kB / 431.4 MB, free: 6.605 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.001388/0.2685, allocations: 0.797 MB / 432.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2685, allocations: 8.031 kB / 432.2 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.512e-05/0.2686, allocations: 21.45 kB / 432.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.2687, allocations: 115.9 kB / 432.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.2688, allocations: 72.52 kB / 432.4 MB, free: 5.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.2694, allocations: 326 kB / 432.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.2694, allocations: 45.69 kB / 432.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.169e-05/0.2695, allocations: 52.38 kB / 432.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008489/0.2703, allocations: 0.5191 MB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.2704, allocations: 7.891 kB / 433.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.348e-05/0.2704, allocations: 24 kB / 433.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.2704, allocations: 16 kB / 433.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006632/0.2711, allocations: 365 kB / 433.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00276/0.2738, allocations: 1.709 MB / 435.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005606/0.2744, allocations: 325 kB / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.2747, allocations: 171.7 kB / 436 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.2747, allocations: 8.375 kB / 436 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.2748, allocations: 38.5 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.635e-06/0.2748, allocations: 0 / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=60): time 0.004524/0.2793, allocations: 1.695 MB / 437.7 MB, free: 64 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.2794, allocations: 89.09 kB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006784/0.2801, allocations: 381.6 kB / 438.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.2801, allocations: 41.7 kB / 438.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/0.2804, allocations: 292.8 kB / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.2807, allocations: 210.2 kB / 438.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.2809, allocations: 106.3 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.2811, allocations: 362.7 kB / 439.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005288/0.2816, allocations: 161.2 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006477/0.2823, allocations: 261 kB / 439.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.2835, allocations: 457.3 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.2835, allocations: 3.984 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00179/0.2853, allocations: 0.5941 MB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.2853, allocations: 8 kB / 440.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2853, allocations: 0 / 440.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00047/0.2858, allocations: 85.75 kB / 440.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007903/0.2866, allocations: 135.8 kB / 440.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.2902, allocations: 2.901 MB / 443.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005598/0.2908, allocations: 24.05 kB / 443.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.25e-05/0.2908, allocations: 27.98 kB / 443.8 MB, free: 9.602 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 (73): * Single equations (assignments): 71 * 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.0003653/0.2912, allocations: 181.6 kB / 444 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.2914, allocations: 55.67 kB / 444 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001454/0.2915, allocations: 56.25 kB / 444.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.2915, allocations: 11.94 kB / 444.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.2915, allocations: 7.875 kB / 444.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.2915, allocations: 7.984 kB / 444.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003226/0.2948, allocations: 1.236 MB / 445.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.2948, allocations: 0 / 445.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006846/0.2955, allocations: 103.8 kB / 445.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004123/0.2959, allocations: 77.72 kB / 445.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.2959, allocations: 12 kB / 445.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/0.2995, allocations: 2.889 MB / 448.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2995, allocations: 0 / 448.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.3019, allocations: 0.8824 MB / 449.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.3021, allocations: 55.69 kB / 449.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3022, allocations: 8 kB / 449.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000686/0.3029, allocations: 39.97 kB / 449.4 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.303, allocations: 43.86 kB / 449.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/0.3031, allocations: 20 kB / 449.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005745/0.3036, allocations: 271.2 kB / 449.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3036, allocations: 0 / 449.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001114/0.3048, allocations: 144 kB / 449.9 MB, free: 3.188 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 ($outputAlias_i2I,$outputAlias_i1B,$outputAlias_i2B) * 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 (54): * Single equations (assignments): 52 * 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.002778/0.3075, allocations: 1.449 MB / 451.3 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.3095, allocations: 0.6419 MB / 452 MB, free: 1.035 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3095, allocations: 0 / 452 MB, free: 1.035 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.3106, allocations: 461.1 kB / 452.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3116, allocations: 73 kB / 452.5 MB, free: 500 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.3235, allocations: 4.841 MB / 457.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.3242, allocations: 0.8682 MB / 458.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.3244, allocations: 60.58 kB / 458.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.3247, allocations: 199.3 kB / 458.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3247, allocations: 4 kB / 458.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03935/0.3641, allocations: 10.8 MB / 469.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.85, allocations: 11.86 kB / 469.3 MB, free: 15.7 MB / 382.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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.206648131948896]