Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",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.001555/0.001559, allocations: 183.1 kB / 16.4 MB, free: 5.746 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.057/2.057, allocations: 205.4 MB / 222.5 MB, free: 9.102 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.001193/0.001192, allocations: 97.25 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005102/0.0005104, allocations: 11.98 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3485, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003503/0.3521, allocations: 2.319 MB / 377 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.3538, allocations: 0.7181 MB / 377.7 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.3541, allocations: 8.062 kB / 377.7 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.111e-05/0.3543, allocations: 36.09 kB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003582/0.3546, allocations: 103 kB / 377.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.355, allocations: 80.23 kB / 377.9 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004456/0.3554, allocations: 250.3 kB / 378.1 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.3557, allocations: 94.31 kB / 378.2 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.3559, allocations: 119.7 kB / 378.4 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.3562, allocations: 160.1 kB / 378.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.905e-05/0.3563, allocations: 18.81 kB / 378.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.298e-05/0.3564, allocations: 18.38 kB / 378.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.704e-05/0.3564, allocations: 56 kB / 378.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.135e-05/0.3565, allocations: 79.39 kB / 378.7 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.3569, allocations: 293.6 kB / 379 MB, free: 42.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3569, allocations: 0.9062 kB / 379 MB, free: 42.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.357, allocations: 0 / 379 MB, free: 42.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.357, allocations: 0 / 379 MB, free: 42.12 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001789/0.3588, allocations: 0.6508 MB / 379.6 MB, free: 41.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.3588, allocations: 9.938 kB / 379.6 MB, free: 41.56 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.361e-05/0.3589, allocations: 62.34 kB / 379.7 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.359, allocations: 32.31 kB / 379.7 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.3595, allocations: 297.7 kB / 380 MB, free: 41.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.3595, allocations: 15.16 kB / 380 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.376e-05/0.3596, allocations: 24.47 kB / 380 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.3607, allocations: 297.9 kB / 380.3 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/0.3608, allocations: 4.984 kB / 380.3 MB, free: 41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.3608, allocations: 10 kB / 380.4 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.3608, allocations: 6.281 kB / 380.4 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.3623, allocations: 326 kB / 380.7 MB, free: 40.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/0.365, allocations: 1.075 MB / 381.8 MB, free: 39.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.3663, allocations: 242.8 kB / 382 MB, free: 39.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.3664, allocations: 2.375 kB / 382 MB, free: 39.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000663/0.3671, allocations: 173.3 kB / 382.2 MB, free: 39.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.405e-06/0.3671, allocations: 0 / 382.2 MB, free: 39.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.001992/0.3691, allocations: 446.7 kB / 382.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.3692, allocations: 79.27 kB / 382.7 MB, free: 39.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005183/0.3697, allocations: 325.5 kB / 383 MB, free: 39.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.3697, allocations: 31.98 kB / 383 MB, free: 39.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.3699, allocations: 258.5 kB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.3699, allocations: 36.7 kB / 383.3 MB, free: 38.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.37, allocations: 5.406 kB / 383.3 MB, free: 38.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.743e-05/0.3701, allocations: 324.3 kB / 383.6 MB, free: 38.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.3706, allocations: 112.8 kB / 383.7 MB, free: 38.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005976/0.3712, allocations: 214.5 kB / 384 MB, free: 38.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006231/0.3719, allocations: 151.6 kB / 384.1 MB, free: 38.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3719, allocations: 1.094 kB / 384.1 MB, free: 38.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001493/0.3734, allocations: 401.8 kB / 384.5 MB, free: 37.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003453/0.3738, allocations: 1.421 MB / 385.9 MB, free: 36.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.3738, allocations: 6.922 kB / 385.9 MB, free: 36.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002695/0.3741, allocations: 33.41 kB / 386 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.3746, allocations: 65.45 kB / 386 MB, free: 36.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.3757, allocations: 1.313 MB / 387.3 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006654/0.3764, allocations: 61.28 kB / 387.4 MB, free: 34.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.3765, allocations: 10.31 kB / 387.4 MB, free: 34.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3765, allocations: 4.156 kB / 387.4 MB, free: 34.99 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001283/0.3778, allocations: 347.5 kB / 387.7 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3778, allocations: 2.75 kB / 387.8 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001292/0.3779, allocations: 30.44 kB / 387.8 MB, free: 34.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004147/0.3784, allocations: 60.77 kB / 387.8 MB, free: 34.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009459/0.3793, allocations: 1.288 MB / 389.1 MB, free: 33.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004438/0.3798, allocations: 41.89 kB / 389.2 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.3799, allocations: 22.52 kB / 389.2 MB, free: 33.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000265/0.3801, allocations: 219.5 kB / 389.4 MB, free: 33.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-05/0.3802, allocations: 28 kB / 389.4 MB, free: 33.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.881e-05/0.3803, allocations: 29.23 kB / 389.5 MB, free: 33.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.3803, allocations: 6.156 kB / 389.5 MB, free: 33.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.3804, allocations: 5.234 kB / 389.5 MB, free: 33.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3804, allocations: 0 / 389.5 MB, free: 33.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005869/0.381, allocations: 451 kB / 389.9 MB, free: 32.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.259e-06/0.381, allocations: 5.219 kB / 389.9 MB, free: 32.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.3813, allocations: 37.81 kB / 390 MB, free: 32.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001624/0.3815, allocations: 28.83 kB / 390 MB, free: 32.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.3815, allocations: 7.953 kB / 390 MB, free: 32.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009724/0.3825, allocations: 1.304 MB / 391.3 MB, free: 31.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3825, allocations: 4.031 kB / 391.3 MB, free: 31.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.3836, allocations: 308.2 kB / 391.6 MB, free: 30.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.3838, allocations: 108.7 kB / 391.7 MB, free: 30.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.059e-05/0.3839, allocations: 0 / 391.7 MB, free: 30.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.3843, allocations: 31.97 kB / 391.7 MB, free: 30.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3844, allocations: 19.97 kB / 391.8 MB, free: 30.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.3844, allocations: 8 kB / 391.8 MB, free: 30.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003105/0.3847, allocations: 223.1 kB / 392 MB, free: 30.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3847, allocations: 0 / 392 MB, free: 30.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007932/0.3855, allocations: 127.7 kB / 392.1 MB, free: 30.32 MB / 298.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001419/0.387, allocations: 0.9239 MB / 393 MB, free: 29.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.3892, allocations: 0.7318 MB / 393.8 MB, free: 28.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3892, allocations: 4.062 kB / 393.8 MB, free: 28.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006672/0.3899, allocations: 222.7 kB / 394 MB, free: 28.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.3904, allocations: 36.64 kB / 394 MB, free: 28.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004891/0.3953, allocations: 4.073 MB / 398.1 MB, free: 24.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.3956, allocations: 0.7638 MB / 398.9 MB, free: 23.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.3958, allocations: 87.62 kB / 398.9 MB, free: 23.24 MB / 298.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3958, allocations: 0 / 398.9 MB, free: 23.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.716/3.112, allocations: 5.759 MB / 404.7 MB, free: 17.49 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat