Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.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.001315/0.001315, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.001474/0.001474, allocations: 209.7 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2385/0.2385, allocations: 44.94 MB / 358.8 MB, free: 6.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.SingularTransfomer,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 63.91 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.387, allocations: 65.47 MB / 0.5569 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.005893/0.3929, allocations: 2.419 MB / 0.5593 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001838/0.3947, allocations: 0.635 MB / 0.5599 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.3949, allocations: 7.938 kB / 0.5599 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.3951, allocations: 43.56 kB / 0.56 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.3953, allocations: 75.34 kB / 0.56 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.3957, allocations: 83.83 kB / 0.5601 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004725/0.3962, allocations: 290.8 kB / 0.5604 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/0.3964, allocations: 66.38 kB / 0.5605 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003014/0.3967, allocations: 119.6 kB / 0.5606 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.3969, allocations: 107.5 kB / 0.5607 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.639e-05/0.397, allocations: 27.94 kB / 0.5607 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.762e-05/0.3971, allocations: 24 kB / 0.5607 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.279e-05/0.3972, allocations: 59.78 kB / 0.5608 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.3973, allocations: 99.53 kB / 0.5609 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.3978, allocations: 290.8 kB / 0.5612 GB, free: 3.188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3978, allocations: 0 / 0.5612 GB, free: 3.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3978, allocations: 4 kB / 0.5612 GB, free: 3.184 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3978, allocations: 0 / 0.5612 GB, free: 3.184 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001132/0.399, allocations: 477.5 kB / 0.5616 GB, free: 2.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.399, allocations: 12.03 kB / 0.5616 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.859e-05/0.3991, allocations: 54.73 kB / 0.5617 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.3993, allocations: 36.78 kB / 0.5617 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000511/0.3999, allocations: 194.1 kB / 0.5619 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.3999, allocations: 16.75 kB / 0.5619 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.3999, allocations: 20.38 kB / 0.5619 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000608/0.4005, allocations: 272.5 kB / 0.5622 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4006, allocations: 0 / 0.5622 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.4006, allocations: 12 kB / 0.5622 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.4006, allocations: 4 kB / 0.5622 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004482/0.4011, allocations: 145.7 kB / 0.5624 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.4029, allocations: 0.7212 MB / 0.5631 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.4032, allocations: 90.48 kB / 0.5631 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.4033, allocations: 48.83 kB / 0.5632 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.4034, allocations: 0 / 0.5632 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.4034, allocations: 34.56 kB / 0.5632 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.4034, allocations: 3.938 kB / 0.5632 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=16): time 0.002572/0.406, allocations: 0.6471 MB / 0.5639 GB, free: 208 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.406, allocations: 59.41 kB / 0.5639 GB, free: 136 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003616/0.4064, allocations: 219.9 kB / 0.5641 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.4064, allocations: 25.7 kB / 0.5642 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.4066, allocations: 176.2 kB / 0.5643 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.4067, allocations: 55.48 kB / 0.5644 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.4068, allocations: 45.8 kB / 0.5644 GB, free: 15.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.407, allocations: 338.7 kB / 0.5647 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.4072, allocations: 55.97 kB / 0.5648 GB, free: 15.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.4075, allocations: 105.1 kB / 0.5649 GB, free: 15.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.4079, allocations: 171 kB / 0.5651 GB, free: 14.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4079, allocations: 0 / 0.5651 GB, free: 14.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007479/0.4087, allocations: 287 kB / 0.5653 GB, free: 14.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4087, allocations: 8 kB / 0.5653 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.4087, allocations: 0 / 0.5653 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003171/0.409, allocations: 73.61 kB / 0.5654 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.4092, allocations: 31.98 kB / 0.5654 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003403/0.4126, allocations: 2.802 MB / 0.5682 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.4129, allocations: 8 kB / 0.5682 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.4129, allocations: 4 kB / 0.5682 GB, free: 11.44 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 16 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.4131, allocations: 141.8 kB / 0.5683 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-05/0.4132, allocations: 23.91 kB / 0.5683 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.049e-05/0.4133, allocations: 21.8 kB / 0.5684 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4133, allocations: 0 / 0.5684 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.4133, allocations: 4 kB / 0.5684 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.4133, allocations: 0 / 0.5684 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.4138, allocations: 236.6 kB / 0.5686 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4138, allocations: 4 kB / 0.5686 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.4139, allocations: 15.98 kB / 0.5686 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002584/0.4141, allocations: 69.67 kB / 0.5687 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.4142, allocations: 4 kB / 0.5687 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.4167, allocations: 2.786 MB / 0.5714 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4167, allocations: 0 / 0.5714 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006608/0.4174, allocations: 400.1 kB / 0.5718 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.294e-05/0.4174, allocations: 19.83 kB / 0.5718 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.4174, allocations: 4 kB / 0.5718 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.4176, allocations: 19.92 kB / 0.5718 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.4177, allocations: 15.97 kB / 0.5718 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.4177, allocations: 12.05 kB / 0.5719 GB, free: 7.375 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.4179, allocations: 152.6 kB / 0.572 GB, free: 7.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4179, allocations: 0 / 0.572 GB, free: 7.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003838/0.4182, allocations: 64 kB / 0.5721 GB, free: 7.164 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * 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 (9): * Single equations (assignments): 7 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009895/0.4192, allocations: 0.9196 MB / 0.573 GB, free: 6.211 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007792/0.42, allocations: 401.2 kB / 0.5733 GB, free: 5.793 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.42, allocations: 0 / 0.5733 GB, free: 5.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.4205, allocations: 321.6 kB / 0.5737 GB, free: 5.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.4208, allocations: 48.06 kB / 0.5737 GB, free: 5.406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003614/0.4244, allocations: 2.487 MB / 0.5761 GB, free: 2.809 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.4246, allocations: 134.2 kB / 0.5763 GB, free: 2.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.418e-05/0.4247, allocations: 25.92 kB / 0.5763 GB, free: 2.629 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.4248, allocations: 63.42 kB / 0.5763 GB, free: 2.566 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4248, allocations: 0 / 0.5763 GB, free: 2.566 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0518/0.4766, allocations: 5.776 MB / 0.582 GB, free: 12.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.06, allocations: 11.94 kB / 0.582 GB, free: 12.95 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_SingularTransfomer.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.SingularTransfomer.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: 15.172695521265268]