Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.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.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_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.0009841/0.0009841, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001373, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 8 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1422, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002992/0.1452, allocations: 2.459 MB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.1465, allocations: 0.6742 MB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1467, allocations: 8 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.1469, allocations: 47.62 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.147, allocations: 71.39 kB / 361.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.1473, allocations: 63.92 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003792/0.1477, allocations: 346.5 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.1479, allocations: 115.8 kB / 362.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002474/0.1482, allocations: 123.6 kB / 362.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1484, allocations: 131.4 kB / 362.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.1484, allocations: 27.88 kB / 362.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.924e-05/0.1484, allocations: 16 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.015e-05/0.1485, allocations: 51.77 kB / 362.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.907e-05/0.1486, allocations: 77.58 kB / 362.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.1488, allocations: 283.4 kB / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1489, allocations: 0 / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1489, allocations: 0 / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.1489, allocations: 0 / 362.8 MB, free: 9.254 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.000889/0.1498, allocations: 0.5691 MB / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.1498, allocations: 8.031 kB / 363.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.405e-05/0.1499, allocations: 74.53 kB / 363.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.15, allocations: 31.62 kB / 363.5 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/0.1503, allocations: 258.4 kB / 363.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.1504, allocations: 24.66 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.1504, allocations: 39.94 kB / 363.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/0.151, allocations: 274.1 kB / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.151, allocations: 0 / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.933e-05/0.151, allocations: 12 kB / 364 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.151, allocations: 8 kB / 364.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/0.1515, allocations: 214.5 kB / 364.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.153, allocations: 0.9869 MB / 365.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.1534, allocations: 158.6 kB / 365.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1535, allocations: 88.81 kB / 365.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.1536, allocations: 4 kB / 365.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1536, allocations: 30.88 kB / 365.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.854e-06/0.1536, allocations: 0 / 365.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005638/0.1542, allocations: 243.6 kB / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.1542, allocations: 55.41 kB / 365.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.1544, allocations: 206.8 kB / 366 MB, free: 5.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.1545, allocations: 29.7 kB / 366.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1546, allocations: 192 kB / 366.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.473e-05/0.1547, allocations: 67.08 kB / 366.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.14e-05/0.1547, allocations: 4 kB / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1548, allocations: 330.8 kB / 366.6 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.155, allocations: 67.95 kB / 366.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.1552, allocations: 125.8 kB / 366.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.1554, allocations: 91.84 kB / 366.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1554, allocations: 0 / 366.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004525/0.1559, allocations: 245.2 kB / 367.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.1559, allocations: 4.125 kB / 367.2 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.1559, allocations: 4 kB / 367.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.156, allocations: 7.953 kB / 367.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002803/0.1563, allocations: 67.89 kB / 367.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1563, allocations: 3.984 kB / 367.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1564, allocations: 31.78 kB / 367.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.1564, allocations: 15.98 kB / 367.3 MB, free: 4.469 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.1566, allocations: 142.9 kB / 367.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.1566, allocations: 23.72 kB / 367.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000425/0.1571, allocations: 200 kB / 367.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1571, allocations: 4 kB / 367.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1571, allocations: 0 / 367.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.1571, allocations: 7.953 kB / 367.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003791/0.1575, allocations: 317.3 kB / 368 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1575, allocations: 0 / 368 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.1578, allocations: 51.97 kB / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1578, allocations: 0 / 368 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.1578, allocations: 11.94 kB / 368 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1578, allocations: 0 / 368 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1578, allocations: 0 / 368 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005881/0.1584, allocations: 361.4 kB / 368.4 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.397e-05/0.1585, allocations: 104.8 kB / 368.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.1586, allocations: 8.062 kB / 368.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.1587, allocations: 15.98 kB / 368.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.98e-05/0.1588, allocations: 16.02 kB / 368.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.1588, allocations: 4 kB / 368.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.159, allocations: 152.6 kB / 368.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.159, allocations: 0 / 368.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.1593, allocations: 75.64 kB / 368.7 MB, free: 2.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * 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 (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009204/0.1602, allocations: 0.9061 MB / 369.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00037/0.1606, allocations: 168.1 kB / 369.8 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1606, allocations: 4 kB / 369.8 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.1608, allocations: 75.91 kB / 369.9 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.1611, allocations: 35.88 kB / 369.9 MB, free: 1.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2203/0.3814, allocations: 1.828 MB / 371.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.3817, allocations: 0.7634 MB / 372.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.3818, allocations: 21.44 kB / 372.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001457/0.382, allocations: 95.47 kB / 372.6 MB, free: 18.3 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.382, allocations: 0 / 372.6 MB, free: 18.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01556/0.3975, allocations: 4.05 MB / 376.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/0.3977, allocations: 191.2 kB / 376.9 MB, free: 17.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.458, allocations: 0 / 376.9 MB, free: 17.85 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat