Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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.001326/0.001326, allocations: 113 kB / 18.49 MB, free: 4.539 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.001423/0.001423, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.535/1.535, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2412/0.2412, allocations: 46.92 MB / 357.8 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Ideal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.91 kB / 0.4916 GB, free: 7.934 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1381, allocations: 65.98 MB / 0.5561 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.01022/0.1484, allocations: 7.773 MB / 0.5636 GB, free: 14.01 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00706/0.1554, allocations: 2.454 MB / 0.566 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002334/0.1577, allocations: 27.94 kB / 0.5661 GB, free: 11.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005746/0.1635, allocations: 1.824 MB / 0.5679 GB, free: 9.691 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002727/0.1662, allocations: 0.7101 MB / 0.5685 GB, free: 8.98 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003131/0.1693, allocations: 1.078 MB / 0.5696 GB, free: 7.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002738/0.1721, allocations: 1.409 MB / 0.571 GB, free: 6.492 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001719/0.1738, allocations: 0.7703 MB / 0.5717 GB, free: 5.695 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.1749, allocations: 0.6228 MB / 0.5723 GB, free: 5.07 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.1762, allocations: 0.7314 MB / 0.573 GB, free: 4.336 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003087/0.1765, allocations: 120 kB / 0.5732 GB, free: 4.219 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.1775, allocations: 335.8 kB / 0.5735 GB, free: 3.891 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003867/0.1779, allocations: 302.9 kB / 0.5738 GB, free: 3.594 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009512/0.1789, allocations: 0.6491 MB / 0.5744 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0028/0.1817, allocations: 1.766 MB / 0.5761 GB, free: 1.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1817, allocations: 0 / 0.5761 GB, free: 1.168 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1817, allocations: 0 / 0.5761 GB, free: 1.168 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.673e-05/0.1817, allocations: 0 / 0.5761 GB, free: 1.168 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.009337/0.1911, allocations: 2.417 MB / 0.5785 GB, free: 14.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.1911, allocations: 12.03 kB / 0.5785 GB, free: 14.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.156e-05/0.1912, allocations: 38.83 kB / 0.5785 GB, free: 14.64 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005322/0.1917, allocations: 190.7 kB / 0.5787 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/0.2022, allocations: 1.339 MB / 0.58 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.2039, allocations: 0.6247 MB / 0.5806 GB, free: 12.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.204, allocations: 99.02 kB / 0.5807 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005033/0.2045, allocations: 131.9 kB / 0.5809 GB, free: 12.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004206/0.2087, allocations: 1.487 MB / 0.5823 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.007e-05/0.2088, allocations: 11.88 kB / 0.5823 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002298/0.209, allocations: 56 kB / 0.5824 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.836e-05/0.2091, allocations: 32 kB / 0.5824 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003603/0.2127, allocations: 1.525 MB / 0.5839 GB, free: 9.055 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01028/0.223, allocations: 5.604 MB / 0.5894 GB, free: 3.121 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002806/0.2258, allocations: 2.053 MB / 0.5914 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.227, allocations: 0.5499 MB / 0.5919 GB, free: 272 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003127/0.2273, allocations: 191.2 kB / 0.5921 GB, free: 44 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2539/0.4813, allocations: 44.83 kB / 0.5921 GB, free: 34.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 1.382e-05/0.4813, allocations: 1.781 kB / 0.5921 GB, free: 34.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=127): time 0.009759/0.491, allocations: 3.076 MB / 0.5951 GB, free: 34.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.4911, allocations: 90.33 kB / 0.5952 GB, free: 34.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005451/0.4916, allocations: 468.4 kB / 0.5957 GB, free: 33.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.927e-05/0.4917, allocations: 45.83 kB / 0.5957 GB, free: 33.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002452/0.4919, allocations: 480.4 kB / 0.5962 GB, free: 33.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002954/0.4922, allocations: 443 kB / 0.5966 GB, free: 33.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003808/0.4926, allocations: 225.6 kB / 0.5968 GB, free: 33.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4927, allocations: 379.5 kB / 0.5972 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008744/0.4936, allocations: 458.1 kB / 0.5976 GB, free: 33.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.4946, allocations: 0.702 MB / 0.5983 GB, free: 32.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001838/0.4965, allocations: 1.202 MB / 0.5995 GB, free: 32.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.4965, allocations: 2.812 kB / 0.5995 GB, free: 32.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.003107/0.4996, allocations: 1.577 MB / 0.601 GB, free: 31.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.4996, allocations: 8.875 kB / 0.601 GB, free: 31.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.4996, allocations: 6.125 kB / 0.601 GB, free: 31.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/0.5013, allocations: 0.5294 MB / 0.6015 GB, free: 31.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.5022, allocations: 199.6 kB / 0.6017 GB, free: 31.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002242/0.5024, allocations: 55.41 kB / 0.6018 GB, free: 31.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000788/0.5032, allocations: 122.3 kB / 0.6019 GB, free: 31.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.5033, allocations: 51.22 kB / 0.602 GB, free: 31.14 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep4.y,booleanStep3.y,booleanStep2.y,booleanStep1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0005118/0.5038, allocations: 268.4 kB / 0.6022 GB, free: 30.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.504, allocations: 83.45 kB / 0.6023 GB, free: 30.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002943/0.507, allocations: 1.544 MB / 0.6038 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/0.507, allocations: 17.34 kB / 0.6038 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.507, allocations: 0.8125 kB / 0.6038 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.507, allocations: 8.016 kB / 0.6038 GB, free: 30.17 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004915/0.512, allocations: 2.847 MB / 0.6066 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.512, allocations: 0.6094 kB / 0.6066 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006484/0.5126, allocations: 147.5 kB / 0.6067 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.5142, allocations: 0.5193 MB / 0.6073 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.489e-05/0.5142, allocations: 27.08 kB / 0.6073 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003281/0.5146, allocations: 61.45 kB / 0.6073 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.5146, allocations: 10.56 kB / 0.6073 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0039/0.5185, allocations: 2.314 MB / 0.6096 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004998/0.519, allocations: 286.8 kB / 0.6099 GB, free: 27.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.5191, allocations: 22 kB / 0.6099 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.5197, allocations: 46.67 kB / 0.6099 GB, free: 27.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/0.52, allocations: 81.33 kB / 0.61 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.412e-05/0.52, allocations: 47.08 kB / 0.6101 GB, free: 27.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004274/0.5205, allocations: 314.5 kB / 0.6104 GB, free: 26.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5205, allocations: 0 / 0.6104 GB, free: 26.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001395/0.5219, allocations: 345 kB / 0.6107 GB, free: 26.86 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004296/0.5262, allocations: 2.918 MB / 0.6135 GB, free: 25.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003497/0.5297, allocations: 1.279 MB / 0.6148 GB, free: 24.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.5297, allocations: 0 / 0.6148 GB, free: 24.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.5315, allocations: 0.6783 MB / 0.6155 GB, free: 24.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00077/0.5323, allocations: 103.5 kB / 0.6156 GB, free: 24.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.5455, allocations: 8.385 MB / 0.6237 GB, free: 19.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.546, allocations: 1.044 MB / 0.6248 GB, free: 18.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005145/0.5466, allocations: 117 kB / 0.6249 GB, free: 18.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004026/0.547, allocations: 391.8 kB / 0.6253 GB, free: 18.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/0.547, allocations: 0 / 0.6253 GB, free: 18.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04342/0.5904, allocations: 22.14 MB / 0.6469 GB, free: 14.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.57/14.16, allocations: 20.78 kB / 0.6469 GB, free: 14.29 MB / 462.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --stepSize=0.00019976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.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: 18.036346353997942]