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.001622/0.001622, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001867/0.001867, allocations: 185.6 kB / 24.49 MB, free: 3.961 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.351/1.351, allocations: 225.7 MB / 253.3 MB, free: 12.88 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.001437/0.001437, allocations: 47.91 kB / 371.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2628, allocations: 52.18 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005114/0.2679, allocations: 3.688 MB / 427.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.2695, allocations: 0.8451 MB / 427.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.2697, allocations: 12 kB / 427.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.2699, allocations: 91.06 kB / 428 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003342/0.2703, allocations: 190.4 kB / 428.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003239/0.2706, allocations: 143.8 kB / 428.3 MB, free: 9.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006751/0.2713, allocations: 0.6693 MB / 429 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002741/0.2715, allocations: 147.7 kB / 429.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.2718, allocations: 267 kB / 429.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.2722, allocations: 286.7 kB / 429.7 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.41e-05/0.2723, allocations: 56 kB / 429.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.303e-05/0.2724, allocations: 52 kB / 429.8 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.2725, allocations: 135.5 kB / 429.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002691/0.2727, allocations: 254.8 kB / 430.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006854/0.2734, allocations: 0.6496 MB / 430.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2734, allocations: 4 kB / 430.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2734, allocations: 0 / 430.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.2734, allocations: 0 / 430.8 MB, free: 6.906 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.001372/0.2748, allocations: 0.8009 MB / 431.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.2749, allocations: 8.031 kB / 431.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.85e-05/0.2749, allocations: 29.38 kB / 431.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.2751, allocations: 108 kB / 431.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.2752, allocations: 72.52 kB / 431.8 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005198/0.2757, allocations: 322 kB / 432.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/0.2757, allocations: 41.69 kB / 432.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.371e-05/0.2758, allocations: 52.38 kB / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000984/0.2768, allocations: 0.6736 MB / 432.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.2768, allocations: 11.94 kB / 432.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.07e-05/0.2769, allocations: 24 kB / 433 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.2769, allocations: 12 kB / 433 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006839/0.2776, allocations: 369 kB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002821/0.2804, allocations: 1.585 MB / 434.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005947/0.281, allocations: 318.5 kB / 435.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.2813, allocations: 177.6 kB / 435.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.2813, allocations: 4.375 kB / 435.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/0.2814, allocations: 46.5 kB / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.705e-06/0.2814, allocations: 0 / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=60): time 0.004168/0.2855, allocations: 1.69 MB / 437.1 MB, free: 308 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/0.2856, allocations: 93.05 kB / 437.2 MB, free: 196 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004784/0.2861, allocations: 385.7 kB / 437.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.2861, allocations: 37.7 kB / 437.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.2863, allocations: 292.7 kB / 437.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.2865, allocations: 218.1 kB / 438.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.2867, allocations: 106.3 kB / 438.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.2869, allocations: 358.7 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.2872, allocations: 161.2 kB / 438.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004209/0.2876, allocations: 269 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007426/0.2884, allocations: 449.3 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2884, allocations: 0 / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001137/0.2895, allocations: 0.5979 MB / 440.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.2895, allocations: 14.48 kB / 440.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2895, allocations: 4 kB / 440.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003268/0.2899, allocations: 81.81 kB / 440.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/0.2904, allocations: 127.8 kB / 440.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002738/0.2931, allocations: 2.893 MB / 443.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.2935, allocations: 27.98 kB / 443.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.805e-05/0.2935, allocations: 20 kB / 443.2 MB, free: 9.848 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.0002736/0.2938, allocations: 177.8 kB / 443.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.2939, allocations: 59.66 kB / 443.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.294, allocations: 64.19 kB / 443.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.294, allocations: 7.938 kB / 443.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.294, allocations: 4 kB / 443.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.294, allocations: 3.984 kB / 443.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002049/0.2961, allocations: 1.177 MB / 444.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.2961, allocations: 0 / 444.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.2966, allocations: 99.88 kB / 444.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002821/0.2969, allocations: 85.66 kB / 444.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.2969, allocations: 12 kB / 444.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002612/0.2995, allocations: 2.873 MB / 447.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2995, allocations: 0 / 447.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.301, allocations: 0.8824 MB / 448.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.49e-05/0.3011, allocations: 47.7 kB / 448.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.3011, allocations: 12 kB / 448.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003886/0.3015, allocations: 35.97 kB / 448.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.268e-05/0.3016, allocations: 47.8 kB / 448.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.3016, allocations: 19.98 kB / 448.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003061/0.302, allocations: 271.2 kB / 449.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.302, allocations: 11.88 kB / 449.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006269/0.3026, allocations: 144 kB / 449.2 MB, free: 3.5 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.001706/0.3043, allocations: 1.449 MB / 450.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.3055, allocations: 0.6496 MB / 451.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3055, allocations: 128 / 451.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006732/0.3061, allocations: 449.1 kB / 451.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005363/0.3067, allocations: 73.53 kB / 451.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006806/0.3135, allocations: 4.841 MB / 456.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.3138, allocations: 269 kB / 456.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002336/0.314, allocations: 56.58 kB / 457 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.3143, allocations: 203.4 kB / 457.2 MB, free: 11.23 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3143, allocations: 0 / 457.2 MB, free: 11.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04366/0.358, allocations: 11.04 MB / 468.2 MB, free: 460 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.16, allocations: 0 / 468.2 MB, free: 460 kB / 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 18.38315920496825]