Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008562/0.0008562, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8925/0.8925, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2.027e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.00643/0.00645, allocations: 5.015 MB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004122/0.01057, allocations: 1.771 MB / 331.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003687/0.01094, allocations: 20 kB / 331.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.01275, allocations: 1.574 MB / 332.9 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009369/0.01368, allocations: 0.5969 MB / 333.5 MB, free: 6.863 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005132/0.0142, allocations: 402.8 kB / 333.9 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005753/0.01477, allocations: 0.8283 MB / 334.7 MB, free: 5.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007792/0.01555, allocations: 0.7585 MB / 335.5 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004856/0.01604, allocations: 0.5183 MB / 336 MB, free: 4.336 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003097/0.01635, allocations: 379 kB / 336.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-05/0.01642, allocations: 76 kB / 336.4 MB, free: 3.891 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003188/0.01674, allocations: 231.7 kB / 336.7 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.01684, allocations: 191.2 kB / 336.9 MB, free: 3.477 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.01702, allocations: 287.3 kB / 337.1 MB, free: 3.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008528/0.01788, allocations: 1.18 MB / 338.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.01788, allocations: 7.922 kB / 338.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.01788, allocations: 4 kB / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.01789, allocations: 3.938 kB / 338.3 MB, free: 1.996 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001845/0.01974, allocations: 1.293 MB / 339.6 MB, free: 0.668 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.01978, allocations: 15.98 kB / 339.6 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.01989, allocations: 148.3 kB / 339.8 MB, free: 0.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002251/0.02214, allocations: 0.6131 MB / 340.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.02263, allocations: 364.5 kB / 340.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.02267, allocations: 74.36 kB / 340.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.285e-05/0.02276, allocations: 96.38 kB / 340.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.02384, allocations: 1.012 MB / 341.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.02386, allocations: 4.188 kB / 341.9 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.72e-05/0.02392, allocations: 44.12 kB / 342 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.02394, allocations: 24 kB / 342 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.02496, allocations: 0.9174 MB / 342.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.02776, allocations: 2.923 MB / 345.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.02882, allocations: 0.7526 MB / 346.6 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.02908, allocations: 252.5 kB / 346.8 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.384e-05/0.02915, allocations: 28.62 kB / 346.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.02917, allocations: 47.16 kB / 346.9 MB, free: 9.145 MB / 314.7 MB Notification: Performance of pre-optimization done (n=65): time 1.994e-06/0.02918, allocations: 0 / 346.9 MB, free: 9.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.0009501/0.03013, allocations: 0.7318 MB / 347.6 MB, free: 8.406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.03017, allocations: 111.5 kB / 347.8 MB, free: 8.273 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.03042, allocations: 277.7 kB / 348 MB, free: 7.996 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.03045, allocations: 37.7 kB / 348.1 MB, free: 7.953 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.0306, allocations: 392.2 kB / 348.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.03071, allocations: 234 kB / 348.7 MB, free: 7.332 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.03083, allocations: 138.6 kB / 348.8 MB, free: 7.188 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.03092, allocations: 350.8 kB / 349.1 MB, free: 6.836 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.03117, allocations: 221.9 kB / 349.4 MB, free: 6.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.03151, allocations: 439.4 kB / 349.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006231/0.03213, allocations: 0.7047 MB / 350.5 MB, free: 5.309 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.03213, allocations: 3.938 kB / 350.5 MB, free: 5.305 MB / 314.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0007711/0.0329, allocations: 0.7469 MB / 351.3 MB, free: 4.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.03292, allocations: 11.98 kB / 351.3 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.03293, allocations: 4 kB / 351.3 MB, free: 4.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.03295, allocations: 15.94 kB / 351.3 MB, free: 4.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003749/0.03332, allocations: 192.2 kB / 351.5 MB, free: 4.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.03334, allocations: 15.94 kB / 351.5 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.03353, allocations: 83.39 kB / 351.6 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.03356, allocations: 35.98 kB / 351.6 MB, free: 4.199 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001742/0.03374, allocations: 217.6 kB / 351.8 MB, free: 3.977 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.173e-05/0.0338, allocations: 39.77 kB / 351.9 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000741/0.03454, allocations: 0.6539 MB / 352.5 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.03455, allocations: 15.88 kB / 352.5 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.03455, allocations: 3.984 kB / 352.5 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.03456, allocations: 0 / 352.5 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.03598, allocations: 1.381 MB / 353.9 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.03598, allocations: 0 / 353.9 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.03628, allocations: 143.9 kB / 354 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.03628, allocations: 4 kB / 354.1 MB, free: 1.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.03631, allocations: 16 kB / 354.1 MB, free: 1.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.03631, allocations: 11.94 kB / 354.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.03631, allocations: 0 / 354.1 MB, free: 1.652 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.03734, allocations: 1.124 MB / 355.2 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.03738, allocations: 51.56 kB / 355.3 MB, free: 476 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.03742, allocations: 16 kB / 355.3 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.03759, allocations: 24.05 kB / 355.3 MB, free: 436 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.03766, allocations: 48.5 kB / 355.3 MB, free: 384 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.03768, allocations: 20 kB / 355.4 MB, free: 364 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001147/0.0378, allocations: 185.2 kB / 355.5 MB, free: 176 kB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0378, allocations: 3.938 kB / 355.5 MB, free: 172 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004694/0.03827, allocations: 223.6 kB / 355.8 MB, free: 15.95 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001273/0.03954, allocations: 1.707 MB / 357.5 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.04019, allocations: 0.5729 MB / 358 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.04019, allocations: 0 / 358 MB, free: 13.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.04047, allocations: 276 kB / 358.3 MB, free: 13.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003822/0.04085, allocations: 49.08 kB / 358.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00437/0.04522, allocations: 4.785 MB / 363.1 MB, free: 8.273 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.04548, allocations: 307.7 kB / 363.4 MB, free: 7.953 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.04566, allocations: 84.38 kB / 363.5 MB, free: 7.867 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.04589, allocations: 260.4 kB / 363.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of SimCode: time 8.02e-07/0.04589, allocations: 0 / 363.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.07361, allocations: 10.42 MB / 374.2 MB, free: 13.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.906/6.979, allocations: 3.938 kB / 374.2 MB, free: 13.32 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.79830624628812]