Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001509/0.001513, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001165/0.001165, allocations: 98.8 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005906/0.0005907, allocations: 8 kB / 327 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3662, allocations: 47.58 MB / 374.6 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00298/0.3692, allocations: 1.911 MB / 376.5 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.3712, allocations: 0.6702 MB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.3714, allocations: 6.375 kB / 377.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.3716, allocations: 17.81 kB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.3718, allocations: 67.92 kB / 377.3 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003954/0.3722, allocations: 62.23 kB / 377.4 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.3726, allocations: 170.4 kB / 377.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.3728, allocations: 87.39 kB / 377.6 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.3731, allocations: 96.11 kB / 377.7 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.3733, allocations: 91.53 kB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-05/0.3734, allocations: 13.56 kB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.539e-05/0.3735, allocations: 10.56 kB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.245e-05/0.3736, allocations: 33.59 kB / 377.8 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.3737, allocations: 67.14 kB / 377.9 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.374, allocations: 199.9 kB / 378.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.374, allocations: 0.9688 kB / 378.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.374, allocations: 0 / 378.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.374, allocations: 7.875 kB / 378.1 MB, free: 42.74 MB / 298.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.001189/0.3752, allocations: 0.6388 MB / 378.8 MB, free: 42.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.3753, allocations: 8.844 kB / 378.8 MB, free: 42.13 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.031e-05/0.3754, allocations: 54.45 kB / 378.8 MB, free: 42.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.033e-05/0.3755, allocations: 25.72 kB / 378.8 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.3758, allocations: 235.3 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.28e-05/0.3759, allocations: 59.92 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.376, allocations: 17.22 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008927/0.3769, allocations: 264.5 kB / 379.4 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3769, allocations: 0 / 379.4 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.377, allocations: 10.56 kB / 379.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.377, allocations: 7.891 kB / 379.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008717/0.3779, allocations: 210.7 kB / 379.6 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.3798, allocations: 0.7732 MB / 380.4 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009586/0.3808, allocations: 309.7 kB / 380.7 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.3809, allocations: 1.469 kB / 380.7 MB, free: 40.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008293/0.3817, allocations: 325.7 kB / 381 MB, free: 40.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.437e-06/0.3818, allocations: 0 / 381 MB, free: 40.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.001974/0.3838, allocations: 0.7527 MB / 381.8 MB, free: 39.99 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.3839, allocations: 211.7 kB / 382 MB, free: 39.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.3842, allocations: 179.2 kB / 382.2 MB, free: 39.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.3842, allocations: 38.86 kB / 382.2 MB, free: 39.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.3843, allocations: 193.5 kB / 382.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.327e-05/0.3844, allocations: 76.98 kB / 382.5 MB, free: 39.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.239e-05/0.3844, allocations: 9.234 kB / 382.5 MB, free: 39.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.333e-05/0.3845, allocations: 326.6 kB / 382.8 MB, free: 39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004313/0.385, allocations: 123.5 kB / 382.9 MB, free: 38.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004439/0.3854, allocations: 172.1 kB / 383.1 MB, free: 38.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004906/0.3859, allocations: 220.1 kB / 383.3 MB, free: 38.67 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.386, allocations: 0 / 383.3 MB, free: 38.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001089/0.3871, allocations: 446.7 kB / 383.7 MB, free: 38.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.59e-05/0.3872, allocations: 99.61 kB / 383.8 MB, free: 38.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.3872, allocations: 1.406 kB / 383.8 MB, free: 38.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.3872, allocations: 2.844 kB / 383.8 MB, free: 38.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.3875, allocations: 39.67 kB / 383.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.3876, allocations: 8.156 kB / 383.9 MB, free: 38.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.3879, allocations: 48.61 kB / 383.9 MB, free: 38.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.388, allocations: 14.03 kB / 383.9 MB, free: 38.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked 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.0003268/0.3883, allocations: 248.1 kB / 384.2 MB, free: 38.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.52e-05/0.3884, allocations: 22.53 kB / 384.2 MB, free: 38.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.3885, allocations: 29 kB / 384.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.3885, allocations: 2.438 kB / 384.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3885, allocations: 1.406 kB / 384.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3886, allocations: 0 / 384.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.3906, allocations: 0.9108 MB / 385.1 MB, free: 37.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.3907, allocations: 0 / 385.1 MB, free: 37.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.3909, allocations: 25.86 kB / 385.2 MB, free: 37.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.3909, allocations: 0 / 385.2 MB, free: 37.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.648e-05/0.391, allocations: 9.766 kB / 385.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.391, allocations: 0 / 385.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.391, allocations: 1.469 kB / 385.2 MB, free: 37.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3925, allocations: 0.6251 MB / 385.8 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.692e-05/0.3927, allocations: 106.3 kB / 385.9 MB, free: 36.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.117e-05/0.3928, allocations: 13.78 kB / 385.9 MB, free: 36.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.3932, allocations: 28.94 kB / 386 MB, free: 36.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3933, allocations: 21.41 kB / 386 MB, free: 36.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.3933, allocations: 15.33 kB / 386 MB, free: 36.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001399/0.3935, allocations: 125.7 kB / 386.1 MB, free: 36.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3935, allocations: 1.031 kB / 386.1 MB, free: 36.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005754/0.3941, allocations: 74.31 kB / 386.2 MB, free: 36.65 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,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) * Number of clocked states: 0 () * 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.001749/0.3959, allocations: 1.195 MB / 387.4 MB, free: 35.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.3971, allocations: 0.56 MB / 387.9 MB, free: 34.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.3971, allocations: 0 / 387.9 MB, free: 34.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007356/0.3979, allocations: 414.7 kB / 388.3 MB, free: 34.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009691/0.3989, allocations: 131.3 kB / 388.5 MB, free: 34.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.4026, allocations: 2.347 MB / 390.8 MB, free: 31.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.4028, allocations: 0.7527 MB / 391.6 MB, free: 31.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.403, allocations: 63.42 kB / 391.6 MB, free: 31.05 MB / 298.7 MB Notification: Performance of SimCode: time 1.202e-06/0.403, allocations: 0 / 391.6 MB, free: 31.05 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.523/2.926, allocations: 3.956 MB / 395.6 MB, free: 27.11 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat