Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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) 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(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001009/0.001009, allocations: 97.25 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 199.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002458/0.0002459, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1221, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.004149/0.1263, allocations: 2.996 MB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002907/0.1293, allocations: 1.364 MB / 362.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005165/0.1298, allocations: 11.94 kB / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006225/0.1305, allocations: 123.3 kB / 362.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.1318, allocations: 331 kB / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1328, allocations: 470.1 kB / 363.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007433/0.1336, allocations: 315.4 kB / 363.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.135, allocations: 0.6211 MB / 364.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005603/0.1356, allocations: 171.3 kB / 364.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000419/0.136, allocations: 211.2 kB / 364.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.778e-05/0.1361, allocations: 20 kB / 364.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005608/0.1367, allocations: 167.7 kB / 365 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.609e-05/0.1368, allocations: 79.72 kB / 365 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.1369, allocations: 105.5 kB / 365.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007673/0.1377, allocations: 0.5028 MB / 365.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1377, allocations: 0 / 365.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1377, allocations: 0 / 365.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.1378, allocations: 4 kB / 365.6 MB, free: 6.27 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002331/0.1401, allocations: 0.8193 MB / 366.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.1402, allocations: 12.03 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002374/0.1404, allocations: 99.72 kB / 366.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003503/0.1439, allocations: 498.9 kB / 367.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.1444, allocations: 309.8 kB / 367.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.662e-05/0.1445, allocations: 49.27 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.1446, allocations: 51.91 kB / 367.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.1457, allocations: 0.5141 MB / 368 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.1457, allocations: 0 / 368 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.1458, allocations: 23.94 kB / 368 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.1458, allocations: 12 kB / 368 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1469, allocations: 0.5751 MB / 368.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003172/0.1501, allocations: 1.976 MB / 370.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2629/0.413, allocations: 2.171 MB / 372.7 MB, free: 17.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002109/0.4133, allocations: 172.3 kB / 372.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.4133, allocations: 39.59 kB / 372.9 MB, free: 16.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.194e-06/0.4133, allocations: 1.062 kB / 372.9 MB, free: 16.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.002309/0.4156, allocations: 0.7982 MB / 373.7 MB, free: 16.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.4157, allocations: 66.02 kB / 373.8 MB, free: 16.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002019/0.4159, allocations: 184.5 kB / 374 MB, free: 16.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.4159, allocations: 34.7 kB / 374 MB, free: 16.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.4161, allocations: 218.7 kB / 374.2 MB, free: 16.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.4162, allocations: 158.5 kB / 374.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.05e-05/0.4162, allocations: 10.97 kB / 374.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.481e-05/0.4163, allocations: 338.2 kB / 374.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003225/0.4167, allocations: 155.1 kB / 374.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.417, allocations: 232.1 kB / 375.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/0.4174, allocations: 183.8 kB / 375.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4174, allocations: 1.188 kB / 375.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001209/0.4186, allocations: 0.5388 MB / 375.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.4187, allocations: 5.719 kB / 375.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4187, allocations: 1.547 kB / 375.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004034/0.4191, allocations: 90.81 kB / 375.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.4195, allocations: 99.81 kB / 376 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.4215, allocations: 1.871 MB / 377.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002799/0.4218, allocations: 46.23 kB / 377.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.4218, allocations: 25.2 kB / 378 MB, free: 14.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002049/0.4221, allocations: 169.7 kB / 378.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.223e-05/0.4221, allocations: 24.66 kB / 378.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.4233, allocations: 0.5529 MB / 378.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4233, allocations: 5.656 kB / 378.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4233, allocations: 5.562 kB / 378.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4233, allocations: 6.719 kB / 378.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.4253, allocations: 1.131 MB / 379.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.4253, allocations: 3.953 kB / 379.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000361/0.4257, allocations: 77.78 kB / 379.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003217/0.426, allocations: 94.19 kB / 380 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.426, allocations: 11.48 kB / 380 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/0.4279, allocations: 1.852 MB / 381.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4279, allocations: 1.312 kB / 381.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0015/0.4294, allocations: 0.8072 MB / 382.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.488e-05/0.4295, allocations: 116.6 kB / 382.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.4295, allocations: 6.25 kB / 382.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.4298, allocations: 21.92 kB / 382.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.4299, allocations: 33.92 kB / 382.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.4299, allocations: 19.12 kB / 382.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.43, allocations: 130 kB / 383 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.43, allocations: 4.016 kB / 383 MB, free: 11.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006848/0.4307, allocations: 153.2 kB / 383.2 MB, free: 11.01 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001681/0.4324, allocations: 1.385 MB / 384.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.4336, allocations: 0.5743 MB / 385.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4336, allocations: 1.719 kB / 385.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00058/0.4342, allocations: 385.2 kB / 385.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.4345, allocations: 22.23 kB / 385.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.4382, allocations: 3.185 MB / 388.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.4385, allocations: 0.8169 MB / 389.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.4387, allocations: 49.3 kB / 389.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.4389, allocations: 137.6 kB / 389.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4389, allocations: 4 kB / 389.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.4593, allocations: 6.897 MB / 396.6 MB, free: 4.703 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.4595, allocations: 218.3 kB / 396.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.346, allocations: 1.125 kB / 396.8 MB, free: 4.469 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat