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.0008301/0.0008304, allocations: 97.2 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001072, allocations: 193.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2103/0.2103, allocations: 45.92 MB / 344.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002878, allocations: 4 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.141, allocations: 63.47 MB / 481.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal): time 0.007808/0.1488, allocations: 6.672 MB / 488.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005659/0.1545, allocations: 2.214 MB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001629/0.1562, allocations: 35.88 kB / 490.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001749/0.158, allocations: 262.5 kB / 490.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003125/0.1612, allocations: 0.606 MB / 491.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002659/0.1639, allocations: 0.8792 MB / 492.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002655/0.1665, allocations: 1.273 MB / 493.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004084/0.1706, allocations: 1.52 MB / 495.1 MB, free: 7.727 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001367/0.172, allocations: 0.502 MB / 495.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.1734, allocations: 0.6264 MB / 496.2 MB, free: 6.594 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004151/0.1738, allocations: 60 kB / 496.3 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.1751, allocations: 263.7 kB / 496.5 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004264/0.1755, allocations: 227 kB / 496.8 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007227/0.1763, allocations: 237.1 kB / 497 MB, free: 5.816 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.1787, allocations: 1.312 MB / 498.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1787, allocations: 0 / 498.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.1787, allocations: 4 kB / 498.3 MB, free: 4.496 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.27e-05/0.1788, allocations: 0 / 498.3 MB, free: 4.496 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.007608/0.1864, allocations: 2.162 MB / 0.4887 GB, free: 2.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1865, allocations: 8.031 kB / 0.4887 GB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000422/0.1869, allocations: 194.5 kB / 0.4889 GB, free: 2.074 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00965/0.1966, allocations: 1.399 MB / 0.4903 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.1983, allocations: 0.5885 MB / 0.4909 GB, free: 40 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.1985, allocations: 102.7 kB / 0.491 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004758/0.199, allocations: 131.9 kB / 0.4911 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003263/0.2023, allocations: 1.483 MB / 0.4925 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.548e-05/0.2023, allocations: 4 kB / 0.4926 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/0.2025, allocations: 56 kB / 0.4926 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.693e-05/0.2025, allocations: 39.98 kB / 0.4926 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002984/0.2055, allocations: 1.509 MB / 0.4941 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009219/0.2148, allocations: 5.658 MB / 0.4996 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/0.2175, allocations: 2.186 MB / 0.5018 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.2187, allocations: 0.6515 MB / 0.5024 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002567/0.219, allocations: 187.1 kB / 0.5026 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.739e-05/0.2191, allocations: 47.56 kB / 0.5026 GB, free: 3.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 3.376e-06/0.2191, allocations: 0 / 0.5026 GB, free: 3.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.008791/0.2279, allocations: 3.07 MB / 0.5056 GB, free: 224 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.228, allocations: 90.11 kB / 0.5057 GB, free: 116 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2691/0.4972, allocations: 453.2 kB / 0.5062 GB, free: 30.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000288/0.4975, allocations: 46.27 kB / 0.5062 GB, free: 30.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/0.4978, allocations: 465.3 kB / 0.5066 GB, free: 30.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.4981, allocations: 422.2 kB / 0.507 GB, free: 29.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-05/0.4982, allocations: 27.16 kB / 0.5071 GB, free: 29.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4983, allocations: 379.4 kB / 0.5074 GB, free: 29.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009241/0.4993, allocations: 462.6 kB / 0.5079 GB, free: 29.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.5003, allocations: 0.7027 MB / 0.5086 GB, free: 29.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009796/0.5013, allocations: 0.5158 MB / 0.5091 GB, free: 29.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.5013, allocations: 5.219 kB / 0.5091 GB, free: 29.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.00286/0.5042, allocations: 1.585 MB / 0.5106 GB, free: 29.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.5042, allocations: 9 kB / 0.5106 GB, free: 29.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.5043, allocations: 7.281 kB / 0.5106 GB, free: 29.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/0.5059, allocations: 0.5222 MB / 0.5111 GB, free: 29.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007738/0.5066, allocations: 205.7 kB / 0.5113 GB, free: 29.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007649/0.5143, allocations: 4.707 MB / 0.5159 GB, free: 27.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.5155, allocations: 125.8 kB / 0.5161 GB, free: 27.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.5157, allocations: 55.84 kB / 0.5161 GB, free: 27.57 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 (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 initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 28} Notification: Performance of prepare postOptimizeDAE: time 0.000629/0.5163, allocations: 265.3 kB / 0.5164 GB, free: 27.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000313/0.5166, allocations: 82.42 kB / 0.5164 GB, free: 27.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003127/0.5197, allocations: 1.582 MB / 0.518 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-05/0.5198, allocations: 17.56 kB / 0.518 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.5198, allocations: 1.312 kB / 0.518 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.5198, allocations: 6 kB / 0.518 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005477/0.5253, allocations: 2.888 MB / 0.5208 GB, free: 26.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.5254, allocations: 1.781 kB / 0.5208 GB, free: 26.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007077/0.5261, allocations: 141 kB / 0.521 GB, free: 26.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.5277, allocations: 0.5192 MB / 0.5215 GB, free: 26.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.97e-05/0.5279, allocations: 25.19 kB / 0.5215 GB, free: 26.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007561/0.5354, allocations: 4.692 MB / 0.5261 GB, free: 23.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5355, allocations: 5.859 kB / 0.5261 GB, free: 23.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004158/0.5396, allocations: 2.35 MB / 0.5284 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004861/0.5401, allocations: 282.9 kB / 0.5286 GB, free: 21.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.5403, allocations: 25.55 kB / 0.5287 GB, free: 21.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.5408, allocations: 54.83 kB / 0.5287 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.5411, allocations: 103.5 kB / 0.5288 GB, free: 21.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.738e-05/0.5412, allocations: 35.91 kB / 0.5289 GB, free: 21.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003588/0.5415, allocations: 305.3 kB / 0.5291 GB, free: 21.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5415, allocations: 0 / 0.5291 GB, free: 21.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001653/0.5432, allocations: 418.5 kB / 0.5295 GB, free: 21.43 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.003999/0.5472, allocations: 2.948 MB / 0.5324 GB, free: 19.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003595/0.5508, allocations: 1.849 MB / 0.5342 GB, free: 18.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.5509, allocations: 0 / 0.5342 GB, free: 18.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.5529, allocations: 1.237 MB / 0.5354 GB, free: 18.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008567/0.5538, allocations: 98.11 kB / 0.5355 GB, free: 18.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009606/0.5634, allocations: 5.968 MB / 0.5414 GB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007702/0.5642, allocations: 1.077 MB / 0.5424 GB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005872/0.5648, allocations: 111.7 kB / 0.5425 GB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.5654, allocations: 388.7 kB / 0.5429 GB, free: 12.41 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5654, allocations: 0 / 0.5429 GB, free: 12.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04336/0.6087, allocations: 23.85 MB / 0.5662 GB, free: 5.516 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.609, allocations: 228.9 kB / 0.5664 GB, free: 5.273 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.522/3.131, allocations: 1.75 kB / 0.5664 GB, free: 5.273 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat