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.0007859/0.0007859, allocations: 79.7 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.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.0008554/0.0008554, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8826/0.8826, allocations: 177.1 MB / 204.2 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.483e-06/1.483e-06, allocations: 0 / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.198e-05, allocations: 4.672 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.00323/0.003252, allocations: 3.72 MB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.004586, allocations: 0.9344 MB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.004772, allocations: 11.94 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.004939, allocations: 95.06 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.005184, allocations: 198.2 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.005511, allocations: 167.6 kB / 329.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004425/0.005954, allocations: 0.7001 MB / 330.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.006153, allocations: 139.7 kB / 330.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.006503, allocations: 395 kB / 331 MB, free: 9.512 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.006681, allocations: 211.3 kB / 331.2 MB, free: 9.305 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.006733, allocations: 60 kB / 331.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.561e-05/0.006808, allocations: 60 kB / 331.3 MB, free: 9.188 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.921e-05/0.006867, allocations: 131.4 kB / 331.4 MB, free: 9.059 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.006993, allocations: 211.4 kB / 331.6 MB, free: 8.852 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.00741, allocations: 0.6619 MB / 332.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.007412, allocations: 0 / 332.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.007413, allocations: 0 / 332.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.00742, allocations: 0 / 332.3 MB, free: 8.188 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.0008852/0.008305, allocations: 0.8008 MB / 333.1 MB, free: 7.355 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.008344, allocations: 11.97 kB / 333.1 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.008459, allocations: 115.8 kB / 333.2 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.008624, allocations: 92.48 kB / 333.3 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.009021, allocations: 321.2 kB / 333.6 MB, free: 6.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.00905, allocations: 41.69 kB / 333.6 MB, free: 6.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.386e-05/0.009104, allocations: 52.38 kB / 333.7 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006106/0.009715, allocations: 0.6427 MB / 334.3 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.009728, allocations: 192 / 334.3 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.009762, allocations: 24.12 kB / 334.4 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.009772, allocations: 16 kB / 334.4 MB, free: 5.965 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004145/0.01019, allocations: 344.4 kB / 334.7 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.01174, allocations: 1.546 MB / 336.3 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.01204, allocations: 249.1 kB / 336.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.01218, allocations: 133.7 kB / 336.6 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.0122, allocations: 7.938 kB / 336.6 MB, free: 3.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.01223, allocations: 38.56 kB / 336.7 MB, free: 3.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.402e-06/0.01223, allocations: 0 / 336.7 MB, free: 3.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.0012/0.01343, allocations: 0.824 MB / 337.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.01347, allocations: 81.11 kB / 337.6 MB, free: 2.582 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.01374, allocations: 401.5 kB / 338 MB, free: 2.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.01376, allocations: 33.7 kB / 338 MB, free: 2.141 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.01389, allocations: 300 kB / 338.3 MB, free: 1.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/0.01394, allocations: 123 kB / 338.4 MB, free: 1.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.01401, allocations: 74.16 kB / 338.5 MB, free: 1.641 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.0141, allocations: 350.8 kB / 338.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.01422, allocations: 101 kB / 338.9 MB, free: 1.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.01438, allocations: 191.2 kB / 339.1 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.01467, allocations: 306.1 kB / 339.4 MB, free: 0.625 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.01467, allocations: 0 / 339.4 MB, free: 0.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005007/0.01517, allocations: 456.6 kB / 339.9 MB, free: 176 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.01518, allocations: 4 kB / 339.9 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.01519, allocations: 4 kB / 339.9 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002012/0.01539, allocations: 81.97 kB / 339.9 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.01555, allocations: 71.91 kB / 340 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.0171, allocations: 2.924 MB / 342.9 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.01724, allocations: 27.88 kB / 343 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.01725, allocations: 16 kB / 343 MB, free: 12.82 MB / 314.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.0001263/0.01738, allocations: 162 kB / 343.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.01743, allocations: 43.72 kB / 343.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.01747, allocations: 51.34 kB / 343.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.01747, allocations: 4 kB / 343.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.01748, allocations: 3.984 kB / 343.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.01748, allocations: 192 / 343.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008146/0.01829, allocations: 0.8757 MB / 344.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.0183, allocations: 0 / 344.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.217e-05/0.01839, allocations: 47.91 kB / 344.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001489/0.01854, allocations: 85.53 kB / 344.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.01855, allocations: 15.98 kB / 344.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.01993, allocations: 2.897 MB / 347.2 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.01993, allocations: 4.031 kB / 347.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005226/0.02045, allocations: 0.6065 MB / 347.8 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.02049, allocations: 43.67 kB / 347.8 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.02052, allocations: 4 kB / 347.8 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.02067, allocations: 43.97 kB / 347.9 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.02073, allocations: 23.95 kB / 347.9 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.02074, allocations: 8 kB / 347.9 MB, free: 7.586 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.02092, allocations: 279.1 kB / 348.2 MB, free: 7.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02092, allocations: 0 / 348.2 MB, free: 7.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003502/0.02127, allocations: 120 kB / 348.3 MB, free: 7.203 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.0007061/0.02198, allocations: 1.167 MB / 349.5 MB, free: 6.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005085/0.02249, allocations: 0.5091 MB / 350 MB, free: 5.469 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.02249, allocations: 0 / 350 MB, free: 5.469 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.02279, allocations: 369.2 kB / 350.3 MB, free: 5.082 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.02311, allocations: 57.66 kB / 350.4 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.02651, allocations: 4.171 MB / 354.5 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.02666, allocations: 242.3 kB / 354.8 MB, free: 432 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.02678, allocations: 51.28 kB / 354.8 MB, free: 376 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.02692, allocations: 172.4 kB / 355 MB, free: 204 kB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.02692, allocations: 0 / 355 MB, free: 204 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/0.05299, allocations: 10.15 MB / 365.2 MB, free: 6.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.06/7.113, allocations: 4 kB / 365.2 MB, free: 6.258 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/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: 10.128348923288286]