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.000964/0.000964, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009477/0.0009477, allocations: 203.1 kB / 16.79 MB, free: 6.84 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.204/1.204, allocations: 205.1 MB / 222.6 MB, free: 4.77 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.2775/0.2775, allocations: 43.51 MB / 313.5 MB, free: 8.578 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.001299/0.001299, allocations: 70.56 kB / 382.1 MB, free: 8.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09526, allocations: 57.78 MB / 439.9 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.1732/0.2685, allocations: 22.48 MB / 462.4 MB, free: 37.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008238/0.2768, allocations: 5.453 MB / 467.9 MB, free: 36.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003161/0.28, allocations: 161.2 kB / 468 MB, free: 36.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01456/0.2946, allocations: 9.017 MB / 477 MB, free: 30.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006611/0.3012, allocations: 2.174 MB / 479.2 MB, free: 29.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003695/0.305, allocations: 1.597 MB / 480.8 MB, free: 28.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01085/0.3158, allocations: 14.75 MB / 495.6 MB, free: 21.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03507/0.3509, allocations: 29.07 MB / 0.5123 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009018/0.36, allocations: 7.074 MB / 0.5192 GB, free: 14.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0122/0.3722, allocations: 8.53 MB / 0.5276 GB, free: 7.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003809/0.376, allocations: 1.52 MB / 0.529 GB, free: 6.152 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005206/0.3813, allocations: 1.747 MB / 0.5308 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003324/0.3846, allocations: 3.739 MB / 0.5344 GB, free: 1.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01021/0.3948, allocations: 7.868 MB / 0.5421 GB, free: 9.484 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02234/0.4172, allocations: 28.06 MB / 0.5695 GB, free: 13.35 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4172, allocations: 0 / 0.5695 GB, free: 13.35 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4172, allocations: 0 / 0.5695 GB, free: 13.35 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006273/0.4179, allocations: 4 kB / 0.5695 GB, free: 13.34 MB / 446.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.04912/0.467, allocations: 18.91 MB / 0.588 GB, free: 10.33 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.467, allocations: 8.031 kB / 0.588 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004919/0.472, allocations: 2.054 MB / 0.59 GB, free: 8.254 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06081/0.5328, allocations: 12.67 MB / 0.6023 GB, free: 11.55 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01542/0.5482, allocations: 7.909 MB / 0.6101 GB, free: 3.559 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001143/0.5494, allocations: 1.071 MB / 0.6111 GB, free: 2.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004813/0.5542, allocations: 1.398 MB / 0.6125 GB, free: 1.086 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.355/0.9093, allocations: 24.09 MB / 0.636 GB, free: 107.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003671/0.9097, allocations: 19.36 kB / 0.636 GB, free: 107.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00291/0.9126, allocations: 0.5749 MB / 0.6366 GB, free: 107.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005306/0.9131, allocations: 0.73 MB / 0.6373 GB, free: 107.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03965/0.9528, allocations: 22.44 MB / 0.6592 GB, free: 100.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1051/1.058, allocations: 73.32 MB / 0.7308 GB, free: 54.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01804/1.076, allocations: 31.6 MB / 0.7617 GB, free: 21.53 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005938/1.082, allocations: 5.068 MB / 0.7666 GB, free: 16.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02252/1.104, allocations: 15.84 MB / 0.7821 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/1.105, allocations: 82.11 kB / 0.7822 GB, free: 344 kB / 494.1 MB Notification: Performance of pre-optimization done (n=465): time 6.101e-06/1.105, allocations: 4 kB / 0.7822 GB, free: 340 kB / 494.1 MB Notification: Performance of matching and sorting (n=465): time 0.03352/1.138, allocations: 15.66 MB / 0.7975 GB, free: 0.582 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/1.138, allocations: 128.7 kB / 0.7976 GB, free: 448 kB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008931/1.147, allocations: 5.246 MB / 0.8027 GB, free: 11.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006829/1.148, allocations: 97.7 kB / 0.8028 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003803/1.152, allocations: 6.046 MB / 0.8087 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001813/1.154, allocations: 1.591 MB / 0.8103 GB, free: 3.359 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003557/1.157, allocations: 1.594 MB / 0.8118 GB, free: 1.758 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 8.79e-05/1.157, allocations: 305.2 kB / 0.8121 GB, free: 1.457 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006464/1.164, allocations: 4.2 MB / 0.8162 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008826/1.172, allocations: 7.562 MB / 0.8236 GB, free: 4.117 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01647/1.189, allocations: 12.32 MB / 0.8356 GB, free: 6.215 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.502e-05/1.189, allocations: 32 kB / 0.8357 GB, free: 6.184 MB / 0.545 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.2079/1.397, allocations: 13.44 MB / 0.8488 GB, free: 162 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.335e-05/1.397, allocations: 53.91 kB / 0.8488 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002254/1.397, allocations: 112.7 kB / 0.8489 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00581/1.403, allocations: 3.098 MB / 0.852 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/1.408, allocations: 1.672 MB / 0.8536 GB, free: 162 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005213/1.409, allocations: 324.2 kB / 0.8539 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00552/1.414, allocations: 1.11 MB / 0.855 GB, free: 161.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001099/1.416, allocations: 408.2 kB / 0.8554 GB, free: 161.8 MB / 0.545 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.008639/1.424, allocations: 5.465 MB / 0.8607 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/1.426, allocations: 0.5098 MB / 0.8612 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01662/1.442, allocations: 9.662 MB / 0.8707 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.276e-05/1.442, allocations: 47.41 kB / 0.8707 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.989e-05/1.442, allocations: 0 / 0.8707 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.798e-05/1.442, allocations: 26.23 kB / 0.8707 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04269/1.485, allocations: 20.88 MB / 0.8911 GB, free: 148.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.601e-05/1.485, allocations: 3.875 kB / 0.8911 GB, free: 148.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003298/1.489, allocations: 0.735 MB / 0.8918 GB, free: 148.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00666/1.495, allocations: 2.966 MB / 0.8947 GB, free: 148 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008328/1.496, allocations: 94.61 kB / 0.8948 GB, free: 147.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005956/1.497, allocations: 124.9 kB / 0.8949 GB, free: 147.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.497, allocations: 0.8125 kB / 0.8949 GB, free: 147.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02101/1.518, allocations: 14.15 MB / 0.9088 GB, free: 142.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003445/1.521, allocations: 1.369 MB / 0.9101 GB, free: 141.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001437/1.523, allocations: 78.22 kB / 0.9102 GB, free: 141.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003376/1.526, allocations: 389.3 kB / 0.9105 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009518/1.527, allocations: 321.5 kB / 0.9109 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004727/1.528, allocations: 131.9 kB / 0.911 GB, free: 141.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005767/1.533, allocations: 3.506 MB / 0.9144 GB, free: 140.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/1.533, allocations: 0 / 0.9144 GB, free: 140.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008777/1.542, allocations: 3.232 MB / 0.9176 GB, free: 137.3 MB / 0.545 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.01926/1.561, allocations: 14.88 MB / 0.9321 GB, free: 124.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01502/1.576, allocations: 10.01 MB / 0.9419 GB, free: 116.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.576, allocations: 8.062 kB / 0.9419 GB, free: 116.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00742/1.584, allocations: 4.443 MB / 0.9462 GB, free: 112.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007023/1.591, allocations: 1.194 MB / 0.9474 GB, free: 111 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3243/1.915, allocations: 98.05 MB / 1.043 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01084/1.926, allocations: 9.115 MB / 1.052 GB, free: 164 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006685/1.933, allocations: 2.938 MB / 1.055 GB, free: 163.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005306/1.938, allocations: 4.755 MB / 1.06 GB, free: 160.3 MB / 0.545 GB Notification: Performance of SimCode: time 8.52e-07/1.938, allocations: 0 / 1.06 GB, free: 160.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2384/2.177, allocations: 177.1 MB / 1.232 GB, free: 19.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/2.177, allocations: 245.1 kB / 1.233 GB, free: 19.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.425/6.602, allocations: 0 / 1.233 GB, free: 19.44 MB / 0.545 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