Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001709/0.001709, allocations: 107.4 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2107/0.2107, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 75.7 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1008, allocations: 62.45 MB / 479.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal): time 0.02176/0.1226, allocations: 22.33 MB / 0.4902 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.1335, allocations: 5.452 MB / 0.4955 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004554/0.1381, allocations: 187.4 kB / 0.4957 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02005/0.1582, allocations: 9.006 MB / 0.5045 GB, free: 428 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2004/0.3586, allocations: 1.913 MB / 0.5063 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004069/0.3627, allocations: 1.758 MB / 0.508 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01405/0.3767, allocations: 14.38 MB / 0.5221 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04429/0.4211, allocations: 39.39 MB / 0.5606 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01204/0.4331, allocations: 8.062 MB / 0.5684 GB, free: 5.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01297/0.4462, allocations: 8.818 MB / 0.577 GB, free: 13.57 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004927/0.4511, allocations: 2.102 MB / 0.5791 GB, free: 11.47 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007733/0.4589, allocations: 2.352 MB / 0.5814 GB, free: 9.145 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006555/0.4655, allocations: 4.329 MB / 0.5856 GB, free: 4.902 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01551/0.481, allocations: 8.424 MB / 0.5938 GB, free: 12.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03126/0.5123, allocations: 28.52 MB / 0.6217 GB, free: 0.543 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5123, allocations: 0 / 0.6217 GB, free: 0.543 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5123, allocations: 0 / 0.6217 GB, free: 0.543 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006448/0.513, allocations: 0 / 0.6217 GB, free: 0.543 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: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.05297/0.566, allocations: 18.71 MB / 0.64 GB, free: 13.92 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.566, allocations: 8.031 kB / 0.64 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004702/0.5707, allocations: 2.018 MB / 0.6419 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06089/0.6316, allocations: 11.69 MB / 0.6534 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01795/0.6496, allocations: 8.554 MB / 0.6617 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001235/0.6509, allocations: 1.064 MB / 0.6628 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005221/0.6561, allocations: 1.376 MB / 0.6641 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05257/0.7087, allocations: 23.58 MB / 0.6871 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004397/0.7092, allocations: 23.75 kB / 0.6872 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003842/0.7131, allocations: 0.5697 MB / 0.6877 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007028/0.7138, allocations: 0.7017 MB / 0.6884 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.371/1.085, allocations: 21.68 MB / 0.7096 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09335/1.178, allocations: 72.7 MB / 0.7806 GB, free: 103.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02288/1.201, allocations: 28.66 MB / 0.8086 GB, free: 71.89 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009885/1.211, allocations: 4.962 MB / 0.8134 GB, free: 66.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03159/1.243, allocations: 16.5 MB / 0.8295 GB, free: 50.16 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/1.243, allocations: 82.11 kB / 0.8296 GB, free: 50.07 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=465): time 6.753e-06/1.243, allocations: 0 / 0.8296 GB, free: 50.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=465): time 0.03206/1.275, allocations: 15.7 MB / 0.8449 GB, free: 34.29 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/1.275, allocations: 128.7 kB / 0.845 GB, free: 34.14 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006028/1.281, allocations: 5.101 MB / 0.85 GB, free: 29.04 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003652/1.281, allocations: 97.7 kB / 0.8501 GB, free: 28.94 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002021/1.283, allocations: 5.887 MB / 0.8559 GB, free: 23.02 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009936/1.284, allocations: 1.593 MB / 0.8574 GB, free: 21.44 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001916/1.286, allocations: 1.535 MB / 0.8589 GB, free: 19.89 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 2.967e-05/1.286, allocations: 305.1 kB / 0.8592 GB, free: 19.59 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/1.291, allocations: 4.14 MB / 0.8633 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005612/1.297, allocations: 7.263 MB / 0.8703 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01246/1.309, allocations: 11.93 MB / 0.882 GB, free: 9.348 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.745e-05/1.309, allocations: 28 kB / 0.882 GB, free: 9.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=961) (initialization): time 0.02036/1.329, allocations: 13.11 MB / 0.8948 GB, free: 12.19 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 8.572e-05/1.33, allocations: 52 kB / 0.8949 GB, free: 12.14 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/1.33, allocations: 104 kB / 0.895 GB, free: 12.04 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006575/1.336, allocations: 3.102 MB / 0.898 GB, free: 8.922 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005616/1.342, allocations: 1.595 MB / 0.8996 GB, free: 7.324 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007303/1.343, allocations: 335 kB / 0.8999 GB, free: 6.988 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005572/1.348, allocations: 1.065 MB / 0.9009 GB, free: 5.914 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000989/1.349, allocations: 384 kB / 0.9013 GB, free: 5.539 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * 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 (814): * Single equations (assignments): 811 * 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.008678/1.358, allocations: 5.394 MB / 0.9066 GB, free: 132 kB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/1.359, allocations: 0.4938 MB / 0.907 GB, free: 15.62 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/1.375, allocations: 9.631 MB / 0.9164 GB, free: 5.961 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/1.375, allocations: 48 kB / 0.9165 GB, free: 5.914 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/1.375, allocations: 4 kB / 0.9165 GB, free: 5.91 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.346e-05/1.375, allocations: 23.91 kB / 0.9165 GB, free: 5.887 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2306/1.606, allocations: 20.81 MB / 0.9368 GB, free: 187.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/1.606, allocations: 5.469 kB / 0.9368 GB, free: 187.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003131/1.609, allocations: 0.73 MB / 0.9375 GB, free: 187.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006881/1.616, allocations: 2.978 MB / 0.9405 GB, free: 186.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006998/1.616, allocations: 94.77 kB / 0.9405 GB, free: 186.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009606/1.617, allocations: 157.9 kB / 0.9407 GB, free: 186.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1.617, allocations: 1.25 kB / 0.9407 GB, free: 186.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02922/1.647, allocations: 14.2 MB / 0.9546 GB, free: 181.2 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003889/1.651, allocations: 1.358 MB / 0.9559 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/1.652, allocations: 85.25 kB / 0.956 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004323/1.656, allocations: 381.6 kB / 0.9563 GB, free: 180.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/1.657, allocations: 320.1 kB / 0.9566 GB, free: 180.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005368/1.658, allocations: 131.2 kB / 0.9568 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006971/1.665, allocations: 3.417 MB / 0.9601 GB, free: 179.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.01e-07/1.665, allocations: 3.906 kB / 0.9601 GB, free: 179.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01089/1.676, allocations: 3.193 MB / 0.9632 GB, free: 178.5 MB / 0.5763 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.01832/1.694, allocations: 14.92 MB / 0.9778 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.03674/1.731, allocations: 19.62 MB / 0.997 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/1.731, allocations: 5.938 kB / 0.997 GB, free: 150.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006456/1.737, allocations: 4.444 MB / 1.001 GB, free: 147 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005307/1.742, allocations: 1.269 MB / 1.003 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1181/1.861, allocations: 95.55 MB / 1.096 GB, free: 44.05 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009489/1.87, allocations: 9.019 MB / 1.105 GB, free: 34.99 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007615/1.878, allocations: 2.865 MB / 1.107 GB, free: 32.12 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005822/1.884, allocations: 4.674 MB / 1.112 GB, free: 27.45 MB / 0.5763 GB Notification: Performance of SimCode: time 7.92e-07/1.884, allocations: 0 / 1.112 GB, free: 27.45 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3912/2.275, allocations: 178.7 MB / 1.287 GB, free: 64.68 MB / 0.5763 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/2.275, allocations: 239 kB / 1.287 GB, free: 64.43 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.913/7.188, allocations: 0 / 1.287 GB, free: 64.43 MB / 0.5763 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/Polyphase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches