Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",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.0008472/0.000847, allocations: 86.72 kB / 16.31 MB, free: 5.676 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.001321/0.001321, allocations: 184.2 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002854, allocations: 8.594 kB / 300.9 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1193, allocations: 50.42 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003274/0.1226, allocations: 2.874 MB / 354.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1238, allocations: 0.7719 MB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1239, allocations: 8 kB / 355 MB, free: 256 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1241, allocations: 47.61 kB / 355.1 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.1243, allocations: 99.11 kB / 355.1 MB, free: 108 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002475/0.1245, allocations: 87.89 kB / 355.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004363/0.125, allocations: 458 kB / 355.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.1252, allocations: 128.4 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.1254, allocations: 143.4 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.1256, allocations: 171.2 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.25e-05/0.1257, allocations: 24 kB / 356.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.511e-05/0.1258, allocations: 20 kB / 356.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.954e-05/0.1258, allocations: 59.7 kB / 356.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.912e-05/0.1259, allocations: 97.52 kB / 356.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.1263, allocations: 450.9 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1263, allocations: 3.984 kB / 356.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1263, allocations: 0 / 356.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1263, allocations: 0 / 356.8 MB, free: 14.47 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001001/0.1273, allocations: 0.6433 MB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1274, allocations: 8.031 kB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.281e-05/0.1275, allocations: 74.53 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.1276, allocations: 43.44 kB / 357.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.128, allocations: 315.1 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.128, allocations: 29 kB / 357.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.94e-05/0.1281, allocations: 32 kB / 357.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006723/0.1287, allocations: 390.2 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1288, allocations: 3.953 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.1288, allocations: 12 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.1288, allocations: 8 kB / 358.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006122/0.1294, allocations: 311.8 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.1315, allocations: 1.463 MB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006169/0.1322, allocations: 250.7 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1324, allocations: 104.8 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.1324, allocations: 11.97 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.1325, allocations: 30.56 kB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.442e-06/0.1325, allocations: 0 / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002055/0.1345, allocations: 0.8051 MB / 361.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1346, allocations: 63.34 kB / 361.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.1349, allocations: 307.3 kB / 361.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1349, allocations: 25.7 kB / 361.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1351, allocations: 227.7 kB / 361.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.173e-05/0.1351, allocations: 59.11 kB / 361.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.1352, allocations: 4 kB / 361.9 MB, free: 9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1353, allocations: 338.8 kB / 362.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1355, allocations: 91.89 kB / 362.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.1358, allocations: 161.4 kB / 362.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.136, allocations: 106.7 kB / 362.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.136, allocations: 3.953 kB / 362.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009138/0.1369, allocations: 434.9 kB / 363 MB, free: 7.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.137, allocations: 11.98 kB / 363 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.137, allocations: 0 / 363 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/0.1374, allocations: 129.6 kB / 363.2 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.1376, allocations: 35.98 kB / 363.2 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003528/0.1411, allocations: 3.322 MB / 366.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.1413, allocations: 43.7 kB / 366.6 MB, free: 4.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.1414, allocations: 11.94 kB / 366.6 MB, free: 4.016 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.1415, allocations: 149.8 kB / 366.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.824e-05/0.1416, allocations: 23.72 kB / 366.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.429e-05/0.1417, allocations: 34.36 kB / 366.8 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1417, allocations: 4 kB / 366.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1417, allocations: 0 / 366.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1417, allocations: 0 / 366.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.1421, allocations: 373.2 kB / 367.2 MB, free: 3.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1421, allocations: 3.938 kB / 367.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.789e-05/0.1422, allocations: 12 kB / 367.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003406/0.1425, allocations: 121.6 kB / 367.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.1425, allocations: 0 / 367.3 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2134/0.3559, allocations: 3.196 MB / 370.5 MB, free: 23.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.356, allocations: 2.188 kB / 370.5 MB, free: 23.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.3571, allocations: 455.2 kB / 370.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.84e-05/0.3572, allocations: 104.3 kB / 371 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.3573, allocations: 3.719 kB / 371 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.3575, allocations: 28.34 kB / 371.1 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.3576, allocations: 17.8 kB / 371.1 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.3576, allocations: 10.14 kB / 371.1 MB, free: 23.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002985/0.3579, allocations: 218.1 kB / 371.3 MB, free: 23.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3579, allocations: 0 / 371.3 MB, free: 23.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000551/0.3585, allocations: 99.84 kB / 371.4 MB, free: 23.32 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001141/0.3596, allocations: 0.9858 MB / 372.4 MB, free: 22.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.3608, allocations: 0.5225 MB / 372.9 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3608, allocations: 1.094 kB / 372.9 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004047/0.3612, allocations: 348 kB / 373.3 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.3616, allocations: 53.58 kB / 373.3 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.365, allocations: 1.885 MB / 375.2 MB, free: 21.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3652, allocations: 0.7768 MB / 376 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.3654, allocations: 29.64 kB / 376 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.3656, allocations: 104.4 kB / 376.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3656, allocations: 0 / 376.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.3881, allocations: 6.383 MB / 382.5 MB, free: 19.78 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.3883, allocations: 221.4 kB / 382.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.998/2.387, allocations: 0 / 382.7 MB, free: 19.54 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat