Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.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.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_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.001127/0.001127, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.205/0.205, allocations: 46.1 MB / 344.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 73.66 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1099, allocations: 62.44 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.009118/0.1191, allocations: 7.74 MB / 487.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00466/0.1238, allocations: 2.408 MB / 490.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.125, allocations: 31.94 kB / 490.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004307/0.1294, allocations: 1.816 MB / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002621/0.132, allocations: 0.7103 MB / 492.8 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.1345, allocations: 1.066 MB / 493.9 MB, free: 7.398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002028/0.1365, allocations: 1.405 MB / 495.3 MB, free: 5.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.1382, allocations: 1.005 MB / 496.3 MB, free: 4.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008469/0.1391, allocations: 0.5995 MB / 496.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009977/0.1401, allocations: 0.7314 MB / 497.6 MB, free: 3.633 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003021/0.1404, allocations: 115.9 kB / 497.8 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009351/0.1413, allocations: 339.8 kB / 498.1 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003414/0.1417, allocations: 294.9 kB / 498.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009308/0.1426, allocations: 0.6569 MB / 499 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002338/0.145, allocations: 1.736 MB / 0.489 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.145, allocations: 4 kB / 0.489 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.145, allocations: 0 / 0.489 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.16e-05/0.1451, allocations: 0 / 0.489 GB, free: 0.4922 MB / 366.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.008182/0.1533, allocations: 2.38 MB / 0.4914 GB, free: 14.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1533, allocations: 12.03 kB / 0.4914 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003208/0.1536, allocations: 194.6 kB / 0.4916 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01055/0.1642, allocations: 1.389 MB / 0.4929 GB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.1655, allocations: 0.609 MB / 0.4935 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.1656, allocations: 99.02 kB / 0.4936 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000365/0.166, allocations: 136.1 kB / 0.4937 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.169, allocations: 1.483 MB / 0.4952 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/0.169, allocations: 7.906 kB / 0.4952 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.1692, allocations: 52 kB / 0.4952 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.165e-05/0.1692, allocations: 36 kB / 0.4953 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002824/0.1721, allocations: 1.505 MB / 0.4967 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008249/0.1803, allocations: 5.63 MB / 0.5022 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.1829, allocations: 2.171 MB / 0.5044 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1867/0.3696, allocations: 0.6471 MB / 0.505 GB, free: 39.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/0.3698, allocations: 187.7 kB / 0.5052 GB, free: 39.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.3699, allocations: 48.84 kB / 0.5052 GB, free: 39.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.978e-06/0.3699, allocations: 0 / 0.5052 GB, free: 39.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.009472/0.3794, allocations: 3.096 MB / 0.5082 GB, free: 39.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.3794, allocations: 90.39 kB / 0.5083 GB, free: 39.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.38, allocations: 467.5 kB / 0.5088 GB, free: 39.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.73e-05/0.3801, allocations: 54.05 kB / 0.5088 GB, free: 39.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.3803, allocations: 462.8 kB / 0.5093 GB, free: 38.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/0.3806, allocations: 420.9 kB / 0.5097 GB, free: 38.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/0.3809, allocations: 215.8 kB / 0.5099 GB, free: 38.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3811, allocations: 385.7 kB / 0.5102 GB, free: 38.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007876/0.3819, allocations: 458.1 kB / 0.5107 GB, free: 38.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.3827, allocations: 0.7022 MB / 0.5114 GB, free: 37.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001656/0.3844, allocations: 1.197 MB / 0.5125 GB, free: 36.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.3844, allocations: 1.938 kB / 0.5125 GB, free: 36.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002783/0.3872, allocations: 1.591 MB / 0.5141 GB, free: 36.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3872, allocations: 9.531 kB / 0.5141 GB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.3873, allocations: 7.031 kB / 0.5141 GB, free: 36.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.3889, allocations: 0.5316 MB / 0.5146 GB, free: 35.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007627/0.3896, allocations: 195.6 kB / 0.5148 GB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001953/0.3898, allocations: 57.55 kB / 0.5149 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006641/0.3905, allocations: 120.3 kB / 0.515 GB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.365e-05/0.3906, allocations: 48.11 kB / 0.515 GB, free: 35.82 MB / 382.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.0003742/0.391, allocations: 271.8 kB / 0.5153 GB, free: 35.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3912, allocations: 79.27 kB / 0.5154 GB, free: 35.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002786/0.3939, allocations: 1.574 MB / 0.5169 GB, free: 34.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.394, allocations: 17 kB / 0.5169 GB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.394, allocations: 1.766 kB / 0.5169 GB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.394, allocations: 9.844 kB / 0.5169 GB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004105/0.3981, allocations: 2.871 MB / 0.5197 GB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3981, allocations: 1.094 kB / 0.5197 GB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.3988, allocations: 140.2 kB / 0.5199 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/0.4002, allocations: 0.5222 MB / 0.5204 GB, free: 33.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.4003, allocations: 25.55 kB / 0.5204 GB, free: 33.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003251/0.4006, allocations: 70.42 kB / 0.5205 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4006, allocations: 0.6094 kB / 0.5205 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003809/0.4044, allocations: 2.333 MB / 0.5227 GB, free: 31.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004241/0.4049, allocations: 284.2 kB / 0.523 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.405, allocations: 22.78 kB / 0.523 GB, free: 31.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006015/0.4056, allocations: 48.14 kB / 0.5231 GB, free: 31.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.4058, allocations: 86.66 kB / 0.5232 GB, free: 31.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-05/0.4059, allocations: 36.98 kB / 0.5232 GB, free: 31.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003315/0.4062, allocations: 311.1 kB / 0.5235 GB, free: 31.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4062, allocations: 0 / 0.5235 GB, free: 31.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008739/0.4071, allocations: 345.5 kB / 0.5238 GB, free: 31.46 MB / 382.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.003621/0.4107, allocations: 2.94 MB / 0.5267 GB, free: 29.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003349/0.4141, allocations: 1.398 MB / 0.5281 GB, free: 29.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4141, allocations: 1.312 kB / 0.5281 GB, free: 29.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.4157, allocations: 0.7711 MB / 0.5288 GB, free: 28.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.4163, allocations: 102.4 kB / 0.5289 GB, free: 28.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009747/0.4261, allocations: 8.651 MB / 0.5374 GB, free: 22.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.4265, allocations: 1.039 MB / 0.5384 GB, free: 21.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004821/0.427, allocations: 109.7 kB / 0.5385 GB, free: 21.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003586/0.4274, allocations: 392.9 kB / 0.5389 GB, free: 20.95 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4274, allocations: 0 / 0.5389 GB, free: 20.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03698/0.4643, allocations: 21.47 MB / 0.5598 GB, free: 15.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.61, allocations: 5.375 kB / 0.5598 GB, free: 15.68 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/Ideal/Ideal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches