Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.001305/0.001304, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001576/0.001576, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.478/1.478, allocations: 223.2 MB / 241.1 MB, free: 5.223 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002881/0.0002881, allocations: 9.062 kB / 300.8 MB, free: 5.551 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 50.42 MB / 351.2 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.00292/0.1337, allocations: 2.331 MB / 353.6 MB, free: 8.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.1348, allocations: 0.7056 MB / 354.3 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.135, allocations: 4 kB / 354.3 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.14e-05/0.135, allocations: 27.77 kB / 354.3 MB, free: 8.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.1353, allocations: 107.7 kB / 354.4 MB, free: 8.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.1356, allocations: 67.8 kB / 354.5 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000322/0.1359, allocations: 239.5 kB / 354.7 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.1361, allocations: 97.78 kB / 354.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.1363, allocations: 123.5 kB / 354.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.1365, allocations: 135.4 kB / 355.1 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.1365, allocations: 16 kB / 355.1 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.504e-05/0.1366, allocations: 16 kB / 355.1 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.299e-05/0.1367, allocations: 55.75 kB / 355.1 MB, free: 7.363 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.12e-05/0.1367, allocations: 81.58 kB / 355.2 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.1371, allocations: 323 kB / 355.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1371, allocations: 0 / 355.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1371, allocations: 0 / 355.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1371, allocations: 4 kB / 355.5 MB, free: 6.957 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001235/0.1383, allocations: 0.6368 MB / 356.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.1384, allocations: 15.97 kB / 356.2 MB, free: 6.25 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.983e-05/0.1385, allocations: 62.53 kB / 356.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.525e-05/0.1385, allocations: 35.56 kB / 356.3 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.1389, allocations: 275.6 kB / 356.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.1389, allocations: 20.56 kB / 356.6 MB, free: 5.812 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.139, allocations: 24 kB / 356.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000702/0.1397, allocations: 331.5 kB / 356.9 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1397, allocations: 0 / 356.9 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.1397, allocations: 12 kB / 356.9 MB, free: 5.445 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1397, allocations: 4 kB / 356.9 MB, free: 5.441 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008291/0.1406, allocations: 302.1 kB / 357.2 MB, free: 5.145 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.1427, allocations: 1.208 MB / 358.5 MB, free: 3.852 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009338/0.1436, allocations: 278.5 kB / 358.7 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.1437, allocations: 3.984 kB / 358.7 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005178/0.1442, allocations: 185 kB / 358.9 MB, free: 3.367 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.1442, allocations: 224 / 358.9 MB, free: 3.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.002183/0.1464, allocations: 0.6707 MB / 359.6 MB, free: 2.668 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.1465, allocations: 81.11 kB / 359.7 MB, free: 2.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.1468, allocations: 262.6 kB / 359.9 MB, free: 2.305 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.1468, allocations: 29.7 kB / 359.9 MB, free: 2.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.1469, allocations: 191.6 kB / 360.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.156e-05/0.147, allocations: 47.38 kB / 360.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.147, allocations: 4 kB / 360.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1472, allocations: 338.8 kB / 360.5 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.1475, allocations: 116.1 kB / 360.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004116/0.1479, allocations: 211.5 kB / 360.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.1483, allocations: 153.7 kB / 361 MB, free: 1.168 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1483, allocations: 0 / 361 MB, free: 1.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001248/0.1496, allocations: 482.1 kB / 361.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.1497, allocations: 37.69 kB / 361.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1497, allocations: 3.938 kB / 361.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003394/0.15, allocations: 72.88 kB / 361.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.1503, allocations: 59.91 kB / 361.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.1531, allocations: 1.783 MB / 363.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.1534, allocations: 51.88 kB / 363.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.1535, allocations: 12 kB / 363.5 MB, free: 14.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (25): * Single equations (assignments): 23 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.1537, allocations: 145.8 kB / 363.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.49e-05/0.1537, allocations: 27.72 kB / 363.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.53e-05/0.1538, allocations: 25.7 kB / 363.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1538, allocations: 3.953 kB / 363.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1538, allocations: 0 / 363.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1538, allocations: 0 / 363.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.1541, allocations: 313.3 kB / 364 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1541, allocations: 3.938 kB / 364 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.1543, allocations: 35.97 kB / 364 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002381/0.1546, allocations: 72.8 kB / 364.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1546, allocations: 0 / 364.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.1568, allocations: 1.573 MB / 365.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1568, allocations: 0 / 365.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001453/0.1582, allocations: 0.4937 MB / 366.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-05/0.1583, allocations: 100.8 kB / 366.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.1584, allocations: 7.953 kB / 366.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.1586, allocations: 40.03 kB / 366.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.903e-05/0.1587, allocations: 19.97 kB / 366.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.1588, allocations: 4 kB / 366.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.159, allocations: 194 kB / 366.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.159, allocations: 0 / 366.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.1594, allocations: 67.78 kB / 366.6 MB, free: 11.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * 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 (11): * Single equations (assignments): 8 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001767/0.1612, allocations: 1.038 MB / 367.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.1625, allocations: 0.498 MB / 368.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1625, allocations: 0 / 368.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000445/0.163, allocations: 231.1 kB / 368.3 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.1633, allocations: 41.39 kB / 368.4 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/0.1696, allocations: 3.824 MB / 372.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.17, allocations: 0.7596 MB / 373 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.1701, allocations: 34.22 kB / 373 MB, free: 4.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1703, allocations: 75.41 kB / 373.1 MB, free: 4.484 MB / 302.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1703, allocations: 0 / 373.1 MB, free: 4.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.1905, allocations: 5.472 MB / 378.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003649/0.191, allocations: 216.7 kB / 378.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.156, allocations: 0 / 378.8 MB, free: 14.97 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat