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.001183/0.001183, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008791/0.0008791, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8871/0.8871, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.104e-05, allocations: 2.281 kB / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004165/0.004186, allocations: 3.679 MB / 322.2 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.005796, allocations: 0.8606 MB / 323 MB, free: 1.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.006012, allocations: 11.94 kB / 323 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.006192, allocations: 91.08 kB / 323.1 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.006494, allocations: 194.2 kB / 323.3 MB, free: 1.477 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.006834, allocations: 143.7 kB / 323.4 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005764/0.00741, allocations: 0.7002 MB / 324.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.007635, allocations: 131.7 kB / 324.3 MB, free: 0.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003688/0.008004, allocations: 395.1 kB / 324.7 MB, free: 116 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.0082, allocations: 207.3 kB / 324.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.166e-05/0.008262, allocations: 56 kB / 324.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.585e-05/0.008318, allocations: 56 kB / 325 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.47e-05/0.008382, allocations: 135.4 kB / 325.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.008514, allocations: 211.4 kB / 325.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006862/0.009201, allocations: 0.6618 MB / 326 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.009203, allocations: 0 / 326 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.009204, allocations: 0 / 326 MB, free: 14.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.009212, allocations: 0 / 326 MB, free: 14.8 MB / 298.7 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.0008919/0.0101, allocations: 0.7931 MB / 326.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.01014, allocations: 8.922 kB / 326.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.01026, allocations: 115.8 kB / 326.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.742e-05/0.01034, allocations: 64.56 kB / 326.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003827/0.01072, allocations: 329.2 kB / 327.3 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.01075, allocations: 37.69 kB / 327.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/0.0108, allocations: 52.38 kB / 327.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005751/0.01138, allocations: 0.6388 MB / 328 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.01139, allocations: 192 / 328 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.01142, allocations: 24.12 kB / 328 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.01143, allocations: 12 kB / 328 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.01183, allocations: 344.4 kB / 328.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.01343, allocations: 1.546 MB / 329.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003014/0.01373, allocations: 249.1 kB / 330.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.01387, allocations: 141.5 kB / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.01389, allocations: 4 kB / 330.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.01391, allocations: 34.88 kB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.703e-06/0.01391, allocations: 4 kB / 330.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001195/0.01511, allocations: 0.8235 MB / 331.2 MB, free: 9.324 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.01515, allocations: 81.11 kB / 331.2 MB, free: 9.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.01546, allocations: 397.4 kB / 331.6 MB, free: 8.828 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.01549, allocations: 33.7 kB / 331.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.01562, allocations: 304 kB / 332 MB, free: 8.488 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.09e-05/0.01568, allocations: 111 kB / 332.1 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-05/0.01576, allocations: 82.12 kB / 332.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.01587, allocations: 350.8 kB / 332.5 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004612/0.01633, allocations: 101 kB / 332.6 MB, free: 7.844 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.01649, allocations: 191.2 kB / 332.8 MB, free: 7.621 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.01679, allocations: 309.2 kB / 333.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.01679, allocations: 0 / 333.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005062/0.0173, allocations: 446.7 kB / 333.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.01731, allocations: 4 kB / 333.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.01732, allocations: 4 kB / 333.5 MB, free: 6.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000215/0.01753, allocations: 81.81 kB / 333.6 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.01775, allocations: 79.89 kB / 333.7 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.01981, allocations: 2.916 MB / 336.6 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.01996, allocations: 19.94 kB / 336.6 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.01998, allocations: 16 kB / 336.6 MB, free: 3.484 MB / 298.7 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.0001506/0.02014, allocations: 161.7 kB / 336.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/0.02019, allocations: 39.77 kB / 336.8 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.837e-05/0.02025, allocations: 59.39 kB / 336.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.02025, allocations: 4 kB / 336.9 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.02026, allocations: 0 / 336.9 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.02026, allocations: 0 / 336.9 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008555/0.02112, allocations: 0.8682 MB / 337.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.02112, allocations: 4 kB / 337.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.397e-05/0.02122, allocations: 43.92 kB / 337.8 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001645/0.02138, allocations: 89.52 kB / 337.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.0214, allocations: 7.984 kB / 337.9 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.02312, allocations: 2.92 MB / 340.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.02312, allocations: 3.984 kB / 340.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005685/0.02369, allocations: 0.614 MB / 341.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.079e-05/0.02374, allocations: 43.62 kB / 341.5 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.02376, allocations: 12 kB / 341.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.02393, allocations: 31.97 kB / 341.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.02401, allocations: 27.89 kB / 341.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.02403, allocations: 12 kB / 341.6 MB, free: 14.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002282/0.02426, allocations: 271.2 kB / 341.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02426, allocations: 0 / 341.8 MB, free: 13.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004577/0.02472, allocations: 120 kB / 341.9 MB, free: 13.84 MB / 314.7 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.0009739/0.02569, allocations: 1.155 MB / 343.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006805/0.02637, allocations: 0.5043 MB / 343.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.02638, allocations: 0 / 343.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000346/0.02672, allocations: 377.8 kB / 344 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.02709, allocations: 61.41 kB / 344 MB, free: 11.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.03109, allocations: 4.153 MB / 348.2 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.03126, allocations: 242.4 kB / 348.4 MB, free: 7.098 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.03138, allocations: 43.3 kB / 348.5 MB, free: 7.055 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.03153, allocations: 168.4 kB / 348.6 MB, free: 6.887 MB / 314.7 MB Notification: Performance of SimCode: time 6.72e-07/0.03153, allocations: 4 kB / 348.6 MB, free: 6.883 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.05914, allocations: 10.08 MB / 358.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.239/7.298, allocations: 7.844 kB / 358.7 MB, free: 13 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/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: 10.332836230285466]