Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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.001921/0.001921, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002071/0.002071, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.515/1.515, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2232/0.2232, allocations: 44.93 MB / 358.8 MB, free: 6.051 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.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",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.002088/0.002088, allocations: 67.89 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3581, allocations: 65.47 MB / 0.557 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008755/0.3669, allocations: 6.132 MB / 0.563 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004444/0.3713, allocations: 2.136 MB / 0.565 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005837/0.3719, allocations: 27.94 kB / 0.5651 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003488/0.3754, allocations: 1.415 MB / 0.5664 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001978/0.3774, allocations: 0.6676 MB / 0.5671 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001604/0.379, allocations: 0.6852 MB / 0.5678 GB, free: 12.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.3805, allocations: 1.148 MB / 0.5689 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.3816, allocations: 0.7529 MB / 0.5696 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006709/0.3823, allocations: 494.1 kB / 0.5701 GB, free: 9.996 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006601/0.383, allocations: 0.5326 MB / 0.5706 GB, free: 9.461 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.3831, allocations: 96 kB / 0.5707 GB, free: 9.367 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006554/0.3838, allocations: 275.8 kB / 0.571 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.384, allocations: 247 kB / 0.5712 GB, free: 8.855 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004756/0.3845, allocations: 469.7 kB / 0.5717 GB, free: 8.395 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.3862, allocations: 1.474 MB / 0.5731 GB, free: 6.914 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3862, allocations: 4 kB / 0.5731 GB, free: 6.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3862, allocations: 0 / 0.5731 GB, free: 6.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.3862, allocations: 0 / 0.5731 GB, free: 6.91 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.004079/0.3903, allocations: 1.632 MB / 0.5747 GB, free: 5.242 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3903, allocations: 8.031 kB / 0.5747 GB, free: 5.234 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002158/0.3906, allocations: 181.8 kB / 0.5749 GB, free: 5.047 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009553/0.4001, allocations: 1.257 MB / 0.5761 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.4015, allocations: 0.492 MB / 0.5766 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.744e-05/0.4016, allocations: 90.41 kB / 0.5767 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002219/0.4018, allocations: 120 kB / 0.5768 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.4042, allocations: 1.324 MB / 0.5781 GB, free: 1.668 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.023e-05/0.4043, allocations: 0 / 0.5781 GB, free: 1.668 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/0.4044, allocations: 55.94 kB / 0.5781 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/0.4044, allocations: 28 kB / 0.5782 GB, free: 1.586 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002533/0.407, allocations: 1.36 MB / 0.5795 GB, free: 224 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007512/0.4145, allocations: 3.553 MB / 0.583 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.4163, allocations: 0.7961 MB / 0.5837 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005987/0.4169, allocations: 330.1 kB / 0.584 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.417, allocations: 32.97 kB / 0.5841 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.417, allocations: 47.5 kB / 0.5841 GB, free: 11.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=89): time 2.895e-06/0.417, allocations: 0 / 0.5841 GB, free: 11.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=89): time 0.00241/0.4194, allocations: 1.044 MB / 0.5851 GB, free: 10.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.4195, allocations: 60.41 kB / 0.5852 GB, free: 10.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001105/0.4206, allocations: 0.801 MB / 0.586 GB, free: 9.418 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/0.4207, allocations: 41.7 kB / 0.586 GB, free: 9.371 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/0.4211, allocations: 484.1 kB / 0.5865 GB, free: 8.891 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/0.4214, allocations: 309.3 kB / 0.5868 GB, free: 8.586 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003318/0.4217, allocations: 190.9 kB / 0.587 GB, free: 8.391 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002463/0.422, allocations: 398.7 kB / 0.5873 GB, free: 7.992 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006758/0.4226, allocations: 342.5 kB / 0.5877 GB, free: 7.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009398/0.4236, allocations: 0.5661 MB / 0.5882 GB, free: 6.996 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.4252, allocations: 0.9348 MB / 0.5891 GB, free: 5.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.4252, allocations: 0 / 0.5891 GB, free: 5.973 MB / 430.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002236/0.4274, allocations: 1.142 MB / 0.5902 GB, free: 4.812 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.4274, allocations: 8 kB / 0.5903 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.4274, allocations: 4.75 kB / 0.5903 GB, free: 4.801 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000369/0.4278, allocations: 73.67 kB / 0.5903 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.4289, allocations: 251.5 kB / 0.5906 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002541/0.4314, allocations: 2.613 MB / 0.5931 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008951/0.4323, allocations: 146.8 kB / 0.5933 GB, free: 1.492 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.213e-05/0.4324, allocations: 47.98 kB / 0.5933 GB, free: 1.445 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (133): * Single equations (assignments): 131 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004251/0.4328, allocations: 247 kB / 0.5935 GB, free: 1.195 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.433, allocations: 95.42 kB / 0.5936 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.435, allocations: 1.095 MB / 0.5947 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.435, allocations: 8 kB / 0.5947 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4351, allocations: 7.984 kB / 0.5947 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4351, allocations: 3.984 kB / 0.5947 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.4391, allocations: 2.165 MB / 0.5968 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.4391, allocations: 12 kB / 0.5969 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007789/0.4399, allocations: 187.6 kB / 0.597 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000236/0.4401, allocations: 66.47 kB / 0.5971 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.813e-05/0.4402, allocations: 27.98 kB / 0.5971 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002418/0.4426, allocations: 2.598 MB / 0.5997 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.584e-05/0.4426, allocations: 11.94 kB / 0.5997 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.4451, allocations: 1.473 MB / 0.6011 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.4453, allocations: 111.2 kB / 0.6012 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.4455, allocations: 27.94 kB / 0.6012 GB, free: 8.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006619/0.4461, allocations: 51.97 kB / 0.6013 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.4463, allocations: 88.28 kB / 0.6014 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.467e-05/0.4463, allocations: 39.98 kB / 0.6014 GB, free: 8.645 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008102/0.4471, allocations: 0.5538 MB / 0.602 GB, free: 8.094 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4471, allocations: 0 / 0.602 GB, free: 8.094 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009392/0.4481, allocations: 287.6 kB / 0.6022 GB, free: 7.812 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.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 (92): * Single equations (assignments): 90 * 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,1,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.003172/0.4513, allocations: 2.095 MB / 0.6043 GB, free: 5.602 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.4534, allocations: 1.023 MB / 0.6053 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.4534, allocations: 0 / 0.6053 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.4544, allocations: 0.5895 MB / 0.6058 GB, free: 3.941 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008784/0.4553, allocations: 118.8 kB / 0.606 GB, free: 3.828 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.4683, allocations: 8.088 MB / 0.6139 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.4687, allocations: 399.1 kB / 0.6142 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006685/0.4694, allocations: 147.4 kB / 0.6144 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005313/0.4699, allocations: 359.3 kB / 0.6147 GB, free: 10.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4699, allocations: 0 / 0.6147 GB, free: 10.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0674/0.5373, allocations: 20.39 MB / 0.6346 GB, free: 6.211 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.91, allocations: 7.734 kB / 0.6346 GB, free: 6.207 MB / 478.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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: 16.173892789054662]