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.001121/0.001121, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1943/0.1943, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 74.62 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09392, allocations: 62.45 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.008382/0.1023, allocations: 7.744 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004137/0.1065, allocations: 2.412 MB / 490.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007887/0.1073, allocations: 24 kB / 490.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003728/0.1111, allocations: 1.819 MB / 492.1 MB, free: 9.113 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001766/0.1129, allocations: 0.702 MB / 492.8 MB, free: 8.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.115, allocations: 1.077 MB / 493.9 MB, free: 7.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.1165, allocations: 1.394 MB / 495.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001328/0.1178, allocations: 1.013 MB / 496.3 MB, free: 4.914 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006874/0.1185, allocations: 0.6033 MB / 496.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007218/0.1193, allocations: 0.7314 MB / 497.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.1194, allocations: 112 kB / 497.8 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006002/0.12, allocations: 339.8 kB / 498.1 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.1202, allocations: 294.9 kB / 498.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004974/0.1208, allocations: 0.6608 MB / 499 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001436/0.1222, allocations: 1.732 MB / 0.489 GB, free: 452 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1222, allocations: 0 / 0.489 GB, free: 452 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1222, allocations: 4 kB / 0.489 GB, free: 448 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.1222, allocations: 0 / 0.489 GB, free: 448 kB / 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.007022/0.1293, allocations: 2.384 MB / 0.4914 GB, free: 14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1293, allocations: 16.03 kB / 0.4914 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002112/0.1295, allocations: 190.7 kB / 0.4916 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/0.1396, allocations: 1.389 MB / 0.4929 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008366/0.1404, allocations: 0.6012 MB / 0.4935 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.312e-05/0.1405, allocations: 99.02 kB / 0.4936 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002088/0.1407, allocations: 136.1 kB / 0.4937 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/0.1431, allocations: 1.483 MB / 0.4952 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.1431, allocations: 7.906 kB / 0.4952 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.1433, allocations: 52 kB / 0.4952 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.544e-05/0.1433, allocations: 32 kB / 0.4953 GB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.1457, allocations: 1.513 MB / 0.4967 GB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007271/0.153, allocations: 5.626 MB / 0.5022 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.1553, allocations: 2.178 MB / 0.5044 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1688/0.3241, allocations: 0.6445 MB / 0.505 GB, free: 40.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001772/0.3243, allocations: 188.1 kB / 0.5052 GB, free: 40.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.3243, allocations: 50.73 kB / 0.5052 GB, free: 40.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.047e-06/0.3243, allocations: 0.875 kB / 0.5052 GB, free: 40.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.008822/0.3331, allocations: 3.093 MB / 0.5082 GB, free: 39.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.3332, allocations: 93.95 kB / 0.5083 GB, free: 39.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004731/0.3337, allocations: 465.9 kB / 0.5088 GB, free: 39.41 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.117e-05/0.3337, allocations: 45.58 kB / 0.5088 GB, free: 39.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.334, allocations: 465.3 kB / 0.5093 GB, free: 39.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.3342, allocations: 428.3 kB / 0.5097 GB, free: 38.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.3345, allocations: 217.5 kB / 0.5099 GB, free: 38.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.3346, allocations: 386.9 kB / 0.5103 GB, free: 38.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007616/0.3354, allocations: 455.5 kB / 0.5107 GB, free: 38.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008723/0.3362, allocations: 0.6909 MB / 0.5114 GB, free: 37.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.3379, allocations: 1.199 MB / 0.5125 GB, free: 36.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.3379, allocations: 1.781 kB / 0.5125 GB, free: 36.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.002645/0.3405, allocations: 1.6 MB / 0.5141 GB, free: 36.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3406, allocations: 7.188 kB / 0.5141 GB, free: 36.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.3406, allocations: 7.438 kB / 0.5141 GB, free: 36.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.3421, allocations: 0.5295 MB / 0.5146 GB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007518/0.3428, allocations: 193.6 kB / 0.5148 GB, free: 35.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001952/0.343, allocations: 58.38 kB / 0.5149 GB, free: 35.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/0.3437, allocations: 118.3 kB / 0.515 GB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.119e-05/0.3438, allocations: 46.86 kB / 0.515 GB, free: 35.88 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.0003579/0.3441, allocations: 277.7 kB / 0.5153 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.3443, allocations: 83.55 kB / 0.5154 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002729/0.347, allocations: 1.566 MB / 0.5169 GB, free: 34.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.347, allocations: 14.7 kB / 0.5169 GB, free: 34.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.347, allocations: 4 kB / 0.5169 GB, free: 34.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.3471, allocations: 11.45 kB / 0.5169 GB, free: 34.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00405/0.3511, allocations: 2.871 MB / 0.5197 GB, free: 33.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3511, allocations: 1.859 kB / 0.5197 GB, free: 33.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006157/0.3518, allocations: 140.4 kB / 0.5199 GB, free: 33.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00139/0.3532, allocations: 0.5233 MB / 0.5204 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.759e-05/0.3532, allocations: 24.86 kB / 0.5204 GB, free: 33.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003161/0.3536, allocations: 69.81 kB / 0.5205 GB, free: 33.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3536, allocations: 0.8906 kB / 0.5205 GB, free: 33.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003499/0.3571, allocations: 2.333 MB / 0.5227 GB, free: 32.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.3574, allocations: 280.1 kB / 0.523 GB, free: 31.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.3576, allocations: 23.08 kB / 0.523 GB, free: 31.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005771/0.3581, allocations: 44.03 kB / 0.5231 GB, free: 31.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.3583, allocations: 83.67 kB / 0.5232 GB, free: 31.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.835e-05/0.3584, allocations: 39.11 kB / 0.5232 GB, free: 31.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003112/0.3587, allocations: 308.4 kB / 0.5235 GB, free: 31.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3587, allocations: 1.219 kB / 0.5235 GB, free: 31.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008331/0.3596, allocations: 349.3 kB / 0.5238 GB, free: 31.53 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.003609/0.3632, allocations: 2.936 MB / 0.5267 GB, free: 29.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003361/0.3665, allocations: 1.406 MB / 0.5281 GB, free: 29.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3666, allocations: 5.188 kB / 0.5281 GB, free: 29.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.3681, allocations: 0.765 MB / 0.5288 GB, free: 29.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006652/0.3688, allocations: 99.23 kB / 0.5289 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009807/0.3786, allocations: 8.655 MB / 0.5374 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.379, allocations: 1.038 MB / 0.5384 GB, free: 21.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004752/0.3795, allocations: 114.8 kB / 0.5385 GB, free: 21.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.3799, allocations: 387.3 kB / 0.5389 GB, free: 20.99 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3799, allocations: 0 / 0.5389 GB, free: 20.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07078/0.4507, allocations: 21.46 MB / 0.5598 GB, free: 15.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.14, allocations: 1.438 kB / 0.5598 GB, free: 15.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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