Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 103.4 kB / 15.98 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 194.7 kB / 16.9 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.1 MB / 222.8 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3746/0.3746, allocations: 43.5 MB / 313.6 MB, free: 8.484 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 70.56 kB / 382.3 MB, free: 8.523 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1363, allocations: 57.78 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.2559/0.3923, allocations: 22.47 MB / 462.6 MB, free: 37.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008231/0.4006, allocations: 5.439 MB / 468 MB, free: 36.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.4021, allocations: 154.4 kB / 468.2 MB, free: 36.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01417/0.4163, allocations: 9.02 MB / 477.2 MB, free: 30.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006211/0.4225, allocations: 2.155 MB / 479.4 MB, free: 29.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003342/0.4259, allocations: 1.583 MB / 480.9 MB, free: 28.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01315/0.439, allocations: 14.57 MB / 495.5 MB, free: 20.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05932/0.4984, allocations: 39.42 MB / 0.5224 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01581/0.5142, allocations: 8.158 MB / 0.5304 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01918/0.5334, allocations: 8.941 MB / 0.5391 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008458/0.5419, allocations: 2.113 MB / 0.5412 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01136/0.5533, allocations: 2.342 MB / 0.5434 GB, free: 7.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007947/0.5613, allocations: 4.404 MB / 0.5477 GB, free: 3.816 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01869/0.58, allocations: 8.521 MB / 0.5561 GB, free: 11.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03497/0.615, allocations: 28.54 MB / 0.5839 GB, free: 14.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.615, allocations: 0 / 0.5839 GB, free: 14.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.6151, allocations: 0 / 0.5839 GB, free: 14.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001121/0.6162, allocations: 0 / 0.5839 GB, free: 14.64 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3927 * Number of variables: 3927 Notification: Performance of Generate backend data structure: time 0.06508/0.6813, allocations: 18.92 MB / 0.6024 GB, free: 11.61 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.726e-05/0.6813, allocations: 15.89 kB / 0.6024 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008576/0.6899, allocations: 2.05 MB / 0.6044 GB, free: 9.535 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06389/0.7538, allocations: 12.67 MB / 0.6168 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02286/0.7767, allocations: 7.912 MB / 0.6245 GB, free: 4.832 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002317/0.7791, allocations: 1.075 MB / 0.6256 GB, free: 3.754 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01003/0.7892, allocations: 1.387 MB / 0.6269 GB, free: 2.367 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6354/1.425, allocations: 24.09 MB / 0.6505 GB, free: 91.22 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001219/1.426, allocations: 25.41 kB / 0.6505 GB, free: 91.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008259/1.434, allocations: 0.5803 MB / 0.651 GB, free: 90.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001699/1.436, allocations: 0.7298 MB / 0.6518 GB, free: 90.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06652/1.502, allocations: 22.44 MB / 0.6737 GB, free: 83 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1605/1.663, allocations: 73.29 MB / 0.7452 GB, free: 22.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03206/1.695, allocations: 31.62 MB / 0.7761 GB, free: 4.031 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0103/1.706, allocations: 5.067 MB / 0.7811 GB, free: 14.95 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03922/1.745, allocations: 15.83 MB / 0.7965 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/1.745, allocations: 86.11 kB / 0.7966 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=465): time 1.222e-05/1.745, allocations: 0 / 0.7966 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of matching and sorting (n=465): time 0.04555/1.791, allocations: 15.66 MB / 0.8119 GB, free: 15.31 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/1.791, allocations: 124.7 kB / 0.812 GB, free: 15.17 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01451/1.805, allocations: 5.252 MB / 0.8172 GB, free: 9.918 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001672/1.807, allocations: 101.7 kB / 0.8173 GB, free: 9.812 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.006461/1.814, allocations: 6.055 MB / 0.8232 GB, free: 3.727 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003041/1.817, allocations: 1.591 MB / 0.8247 GB, free: 2.148 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007366/1.824, allocations: 1.594 MB / 0.8263 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001449/1.824, allocations: 301.1 kB / 0.8266 GB, free: 256 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009504/1.834, allocations: 4.204 MB / 0.8307 GB, free: 12.04 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/1.846, allocations: 7.558 MB / 0.8381 GB, free: 2.961 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4151/2.262, allocations: 12.31 MB / 0.8501 GB, free: 172.8 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001394/2.262, allocations: 35.59 kB / 0.8501 GB, free: 172.8 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.02416/2.286, allocations: 13.45 MB / 0.8632 GB, free: 168 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 8.823e-05/2.286, allocations: 52.88 kB / 0.8633 GB, free: 168 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/2.286, allocations: 113.3 kB / 0.8634 GB, free: 168 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007413/2.294, allocations: 3.113 MB / 0.8664 GB, free: 167.2 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007379/2.301, allocations: 1.667 MB / 0.8681 GB, free: 167 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009192/2.302, allocations: 319.4 kB / 0.8684 GB, free: 166.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008925/2.311, allocations: 1.107 MB / 0.8695 GB, free: 166.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002506/2.313, allocations: 411.2 kB / 0.8698 GB, free: 166.6 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep4[3].y,booleanStep4[2].y,booleanStep4[1].y,booleanStep3[3].y,booleanStep3[2].y,booleanStep3[1].y,booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,booleanStep1[3].y,booleanStep1[2].y,booleanStep1[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (853): * Single equations (assignments): 850 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(20,30), (20,28), (20,28)} Notification: Performance of prepare postOptimizeDAE: time 0.01566/2.329, allocations: 5.458 MB / 0.8752 GB, free: 164.2 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002162/2.331, allocations: 0.5117 MB / 0.8757 GB, free: 164.1 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02075/2.352, allocations: 9.658 MB / 0.8851 GB, free: 160.4 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.49e-05/2.352, allocations: 48.3 kB / 0.8852 GB, free: 160.4 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.921e-05/2.352, allocations: 0 / 0.8852 GB, free: 160.4 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.055e-05/2.352, allocations: 27.94 kB / 0.8852 GB, free: 160.4 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04669/2.399, allocations: 20.88 MB / 0.9056 GB, free: 152.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.576e-05/2.399, allocations: 1.469 kB / 0.9056 GB, free: 152.7 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/2.402, allocations: 0.7318 MB / 0.9063 GB, free: 152.7 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00585/2.408, allocations: 2.98 MB / 0.9092 GB, free: 151.8 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005532/2.409, allocations: 96.27 kB / 0.9093 GB, free: 151.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005286/2.409, allocations: 126.8 kB / 0.9094 GB, free: 151.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/2.409, allocations: 0 / 0.9094 GB, free: 151.7 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01961/2.429, allocations: 14.16 MB / 0.9232 GB, free: 146.1 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003611/2.433, allocations: 1.372 MB / 0.9246 GB, free: 144.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007691/2.433, allocations: 79.94 kB / 0.9247 GB, free: 144.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002611/2.436, allocations: 387.7 kB / 0.925 GB, free: 144.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007179/2.437, allocations: 312.8 kB / 0.9253 GB, free: 144.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000308/2.437, allocations: 127.5 kB / 0.9254 GB, free: 144.3 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005878/2.443, allocations: 3.51 MB / 0.9289 GB, free: 141.4 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.61e-07/2.443, allocations: 0 / 0.9289 GB, free: 141.4 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01128/2.454, allocations: 3.226 MB / 0.932 GB, free: 138.2 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(20,30), (20,28), (20,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02139/2.476, allocations: 14.89 MB / 0.9466 GB, free: 125.4 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.0427/2.519, allocations: 19.76 MB / 0.9659 GB, free: 106.3 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/2.519, allocations: 2.344 kB / 0.9659 GB, free: 106.3 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.01051/2.529, allocations: 4.451 MB / 0.9702 GB, free: 101.8 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01205/2.541, allocations: 1.272 MB / 0.9714 GB, free: 100.6 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.55/3.091, allocations: 98.05 MB / 1.067 GB, free: 161.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01943/3.111, allocations: 9.11 MB / 1.076 GB, free: 158.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.01375/3.125, allocations: 2.94 MB / 1.079 GB, free: 158.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008946/3.134, allocations: 4.754 MB / 1.084 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of SimCode: time 3.667e-06/3.134, allocations: 1.781 kB / 1.084 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.267/5.4, allocations: 180.8 MB / 1.26 GB, free: 139.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/5.401, allocations: 238.8 kB / 1.26 GB, free: 139.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/12.71, allocations: 1.422 kB / 1.26 GB, free: 139.7 MB / 0.5607 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/QuasiStatic/MultiPhase/Ideal/Ideal.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches