Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 200.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 225.6 MB / 234.8 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008283/0.0008284, allocations: 104.6 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.169e-05/2.186e-05, allocations: 4 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09082, allocations: 51.47 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3091/0.3999, allocations: 79.6 MB / 474.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001769/0.4001, allocations: 73.89 kB / 474.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01594/0.4161, allocations: 7.306 MB / 482.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.4161, allocations: 0 / 482.2 MB, free: 7.391 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.4161, allocations: 4 kB / 482.2 MB, free: 7.387 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006615/0.4168, allocations: 0.6065 MB / 482.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.4168, allocations: 8.031 kB / 482.9 MB, free: 6.734 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.417, allocations: 43.61 kB / 482.9 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.4173, allocations: 246.2 kB / 483.1 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.992e-05/0.4174, allocations: 45.08 kB / 483.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.4174, allocations: 12 kB / 483.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002279/0.4177, allocations: 158 kB / 483.3 MB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/0.418, allocations: 207.6 kB / 483.5 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.418, allocations: 0 / 483.5 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.418, allocations: 0 / 483.5 MB, free: 6.098 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.418, allocations: 12 kB / 483.6 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.4191, allocations: 0.7088 MB / 484.3 MB, free: 5.441 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.4194, allocations: 247.4 kB / 484.5 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.4196, allocations: 188 kB / 484.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.4196, allocations: 11.98 kB / 484.7 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.4199, allocations: 291.5 kB / 485 MB, free: 4.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.4199, allocations: 0 / 485 MB, free: 4.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004355/0.4203, allocations: 312.9 kB / 485.3 MB, free: 4.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.4204, allocations: 225.2 kB / 485.5 MB, free: 4.363 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.4205, allocations: 163.5 kB / 485.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.4206, allocations: 33.69 kB / 485.7 MB, free: 4.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.23e-05/0.4206, allocations: 126.4 kB / 485.8 MB, free: 4.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.306e-05/0.4207, allocations: 76.69 kB / 485.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.4207, allocations: 0 / 485.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.4207, allocations: 334.5 kB / 486.2 MB, free: 3.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.4209, allocations: 81.31 kB / 486.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.421, allocations: 159.1 kB / 486.5 MB, free: 3.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.4211, allocations: 98.95 kB / 486.6 MB, free: 3.414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4211, allocations: 0 / 486.6 MB, free: 3.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003278/0.4215, allocations: 311.9 kB / 486.9 MB, free: 3.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.4215, allocations: 96.78 kB / 487 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4215, allocations: 3.938 kB / 487 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.4215, allocations: 4 kB / 487 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.4217, allocations: 45.97 kB / 487 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.4217, allocations: 7.953 kB / 487 MB, free: 3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.4219, allocations: 19.98 kB / 487 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.4219, allocations: 12.06 kB / 487.1 MB, free: 2.969 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * 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.0001264/0.4221, allocations: 211.1 kB / 487.3 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000389/0.4225, allocations: 343 kB / 487.6 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.262e-05/0.4225, allocations: 23.77 kB / 487.6 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.4226, allocations: 21.09 kB / 487.6 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.4226, allocations: 4 kB / 487.6 MB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4226, allocations: 4.031 kB / 487.6 MB, free: 2.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4226, allocations: 3.984 kB / 487.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007266/0.4233, allocations: 0.7986 MB / 488.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4233, allocations: 4 kB / 488.5 MB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.4234, allocations: 24.02 kB / 488.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.4234, allocations: 0 / 488.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.4235, allocations: 4 kB / 488.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.4235, allocations: 4 kB / 488.5 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4235, allocations: 0 / 488.5 MB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004065/0.4239, allocations: 476.3 kB / 489 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.4239, allocations: 100.2 kB / 489.1 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.424, allocations: 11.98 kB / 489.1 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.4242, allocations: 19.98 kB / 489.1 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.4243, allocations: 39.39 kB / 489.1 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.4243, allocations: 10.66 kB / 489.1 MB, free: 1.109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.365e-05/0.4244, allocations: 124.1 kB / 489.3 MB, free: 1.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.4244, allocations: 4 kB / 489.3 MB, free: 1 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003149/0.4247, allocations: 75.77 kB / 489.3 MB, free: 0.9258 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0006736/0.4254, allocations: 1.089 MB / 490.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.4259, allocations: 492.2 kB / 490.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4259, allocations: 0 / 490.9 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.4262, allocations: 368.3 kB / 491.3 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.4269, allocations: 110.8 kB / 491.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009349/0.4279, allocations: 427.6 kB / 491.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.4282, allocations: 0.7467 MB / 492.5 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001792/0.4284, allocations: 54.33 kB / 492.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.4286, allocations: 66.47 kB / 492.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of SimCode: time 4.1e-07/0.4286, allocations: 0 / 492.6 MB, free: 13.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.4515, allocations: 5.418 MB / 498.1 MB, free: 8.539 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.4517, allocations: 138.8 kB / 498.2 MB, free: 8.352 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.12, allocations: 0 / 498.2 MB, free: 8.352 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat