Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000954/0.0009543, allocations: 98.19 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001319, allocations: 183.7 kB / 17.83 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004805/0.0004808, allocations: 23.42 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08474, allocations: 47.56 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002276/0.08705, allocations: 1.91 MB / 330.3 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.0881, allocations: 0.683 MB / 331 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.08821, allocations: 0 / 331 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.08835, allocations: 23.78 kB / 331 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.08847, allocations: 67.8 kB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.08876, allocations: 67.78 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.08898, allocations: 163.7 kB / 331.3 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.08917, allocations: 93.19 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.08934, allocations: 91.69 kB / 331.5 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.08949, allocations: 87.59 kB / 331.6 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.901e-05/0.08952, allocations: 12 kB / 331.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.186e-05/0.08956, allocations: 16 kB / 331.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.773e-05/0.08962, allocations: 35.84 kB / 331.6 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.678e-05/0.0897, allocations: 65.58 kB / 331.7 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.08991, allocations: 203.7 kB / 331.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.08991, allocations: 0 / 331.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.08992, allocations: 7.984 kB / 331.9 MB, free: 496 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.08993, allocations: 0 / 331.9 MB, free: 496 kB / 270.1 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.0009087/0.09085, allocations: 0.6324 MB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.09089, allocations: 8.031 kB / 332.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.354e-05/0.09096, allocations: 54.55 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.977e-05/0.09103, allocations: 27.72 kB / 332.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.09129, allocations: 235.4 kB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.974e-05/0.09137, allocations: 57.58 kB / 332.9 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.872e-05/0.09142, allocations: 24 kB / 332.9 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005589/0.09199, allocations: 264.1 kB / 333.2 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.09201, allocations: 0 / 333.2 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.09203, allocations: 4 kB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.09205, allocations: 8 kB / 333.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.09253, allocations: 212.3 kB / 333.4 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.09375, allocations: 0.7795 MB / 334.2 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.09432, allocations: 307.4 kB / 334.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.09435, allocations: 3.938 kB / 334.5 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004843/0.09484, allocations: 321.5 kB / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.282e-06/0.09485, allocations: 0 / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001216/0.09607, allocations: 0.7538 MB / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.0962, allocations: 207.8 kB / 335.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.09636, allocations: 179.9 kB / 336 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.09641, allocations: 41.7 kB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.547e-05/0.09649, allocations: 128.8 kB / 336.1 MB, free: 11.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.459e-05/0.09656, allocations: 75.02 kB / 336.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.386e-05/0.09658, allocations: 8 kB / 336.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.09671, allocations: 334.9 kB / 336.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.09696, allocations: 124.6 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.09723, allocations: 171.3 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.09754, allocations: 221.8 kB / 337 MB, free: 10.96 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.09755, allocations: 0 / 337 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006594/0.09822, allocations: 462.5 kB / 337.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.11e-05/0.0983, allocations: 93.09 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.09831, allocations: 4 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.09833, allocations: 7.938 kB / 337.6 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.09852, allocations: 43.91 kB / 337.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.09854, allocations: 8.094 kB / 337.6 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.09872, allocations: 35.73 kB / 337.7 MB, free: 10.28 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.09875, allocations: 12 kB / 337.7 MB, free: 10.27 MB / 286.1 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.000219/0.09898, allocations: 243.7 kB / 337.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.09904, allocations: 27.72 kB / 338 MB, free: 9.984 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.09909, allocations: 22.66 kB / 338 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.0991, allocations: 4 kB / 338 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.09911, allocations: 0 / 338 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.09912, allocations: 3.984 kB / 338 MB, free: 9.949 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.1003, allocations: 0.9039 MB / 338.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1003, allocations: 4.188 kB / 338.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.1004, allocations: 23.92 kB / 338.9 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1004, allocations: 3.938 kB / 338.9 MB, free: 8.945 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.1005, allocations: 8 kB / 338.9 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1005, allocations: 4 kB / 338.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1005, allocations: 0 / 338.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000864/0.1014, allocations: 0.6234 MB / 339.6 MB, free: 8.281 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.1014, allocations: 100.8 kB / 339.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.643e-05/0.1015, allocations: 19.97 kB / 339.7 MB, free: 8.145 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/0.1017, allocations: 27.98 kB / 339.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.1018, allocations: 27.95 kB / 339.7 MB, free: 8.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.1019, allocations: 8 kB / 339.7 MB, free: 8.082 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.983e-05/0.102, allocations: 127.2 kB / 339.9 MB, free: 7.957 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.102, allocations: 0 / 339.9 MB, free: 7.957 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003237/0.1023, allocations: 79.84 kB / 339.9 MB, free: 7.879 MB / 286.1 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.001197/0.1035, allocations: 1.197 MB / 341.1 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000759/0.1043, allocations: 0.5572 MB / 341.7 MB, free: 6.043 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1043, allocations: 0 / 341.7 MB, free: 6.043 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004871/0.1048, allocations: 414.7 kB / 342.1 MB, free: 5.613 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.1054, allocations: 119.8 kB / 342.2 MB, free: 5.496 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.1079, allocations: 2.316 MB / 344.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.1082, allocations: 0.7527 MB / 345.3 MB, free: 2.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001505/0.1083, allocations: 49.89 kB / 345.3 MB, free: 2.293 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.521e-05/0.1084, allocations: 63.41 kB / 345.4 MB, free: 2.23 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1084, allocations: 0 / 345.4 MB, free: 2.23 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1261, allocations: 5.847 MB / 351.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/0.1263, allocations: 181.9 kB / 351.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/1.977, allocations: 0 / 351.4 MB, free: 12.15 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat