Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",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.001552/0.001551, allocations: 91.48 kB / 16.3 MB, free: 6.457 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.0016/0.0016, allocations: 180.6 kB / 17.2 MB, free: 6.34 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.473/1.473, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.0003012, allocations: 10.34 kB / 300.8 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.122, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.00502/0.1271, allocations: 3.592 MB / 354.8 MB, free: 8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002772/0.13, allocations: 1.189 MB / 356 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004756/0.1305, allocations: 11.94 kB / 356 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004023/0.1309, allocations: 111.3 kB / 356.1 MB, free: 6.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005484/0.1315, allocations: 227.3 kB / 356.4 MB, free: 6.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006573/0.1321, allocations: 147.7 kB / 356.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008275/0.133, allocations: 0.5035 MB / 357 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004825/0.1335, allocations: 203.9 kB / 357.2 MB, free: 5.609 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.1339, allocations: 235 kB / 357.4 MB, free: 5.379 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004045/0.1343, allocations: 266.8 kB / 357.7 MB, free: 5.117 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.766e-05/0.1344, allocations: 35.94 kB / 357.7 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.138e-05/0.1345, allocations: 32 kB / 357.8 MB, free: 5.051 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.1346, allocations: 111.6 kB / 357.9 MB, free: 4.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.1348, allocations: 137.4 kB / 358 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005977/0.1354, allocations: 0.5336 MB / 358.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1354, allocations: 0 / 358.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1354, allocations: 0 / 358.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.1354, allocations: 0 / 358.5 MB, free: 4.266 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001842/0.1373, allocations: 0.8612 MB / 359.4 MB, free: 3.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.1373, allocations: 12.03 kB / 359.4 MB, free: 3.344 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.1375, allocations: 90.52 kB / 359.5 MB, free: 3.246 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.1376, allocations: 75.09 kB / 359.6 MB, free: 3.172 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006386/0.1383, allocations: 388.9 kB / 360 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.1383, allocations: 41.31 kB / 360 MB, free: 2.711 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.1384, allocations: 56 kB / 360 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.1395, allocations: 0.5534 MB / 360.6 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.1395, allocations: 3.906 kB / 360.6 MB, free: 2.086 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-05/0.1396, allocations: 20 kB / 360.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.1396, allocations: 20 kB / 360.6 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009781/0.1406, allocations: 429 kB / 361.1 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.1439, allocations: 1.855 MB / 362.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.145, allocations: 0.5309 MB / 363.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.155e-05/0.145, allocations: 4.328 kB / 363.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006858/0.1457, allocations: 302.2 kB / 363.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.255e-06/0.1457, allocations: 3.938 kB / 363.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.003742/0.1495, allocations: 1.173 MB / 364.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.1497, allocations: 235.3 kB / 365.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006881/0.1504, allocations: 437.8 kB / 365.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.1504, allocations: 33.7 kB / 365.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003321/0.1508, allocations: 312.1 kB / 365.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/0.1509, allocations: 138 kB / 366.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.259e-05/0.151, allocations: 8 kB / 366.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.1512, allocations: 350.8 kB / 366.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/0.1516, allocations: 157 kB / 366.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.1522, allocations: 317.5 kB / 366.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004411/0.1526, allocations: 197.5 kB / 367.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.1526, allocations: 3.953 kB / 367.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001813/0.1545, allocations: 0.733 MB / 367.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.1545, allocations: 8 kB / 367.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.1545, allocations: 7.953 kB / 367.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005722/0.1551, allocations: 160.7 kB / 368 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.1554, allocations: 87.89 kB / 368.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/0.1599, allocations: 2.563 MB / 370.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005111/0.1604, allocations: 91.39 kB / 370.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.1605, allocations: 16 kB / 370.7 MB, free: 7.469 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002571/0.1607, allocations: 181.7 kB / 370.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.628e-05/0.1608, allocations: 51.44 kB / 371 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.42e-05/0.1609, allocations: 52.86 kB / 371 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.1609, allocations: 4 kB / 371 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1609, allocations: 7.938 kB / 371 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1609, allocations: 0 / 371 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.1632, allocations: 1.231 MB / 372.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1632, allocations: 0 / 372.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.1634, allocations: 59.91 kB / 372.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004944/0.1639, allocations: 162.7 kB / 372.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.164, allocations: 4 kB / 372.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004119/0.1681, allocations: 2.537 MB / 375 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.1681, allocations: 7.938 kB / 375 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.1701, allocations: 0.8978 MB / 375.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.1703, allocations: 128.5 kB / 376 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.022e-05/0.1703, allocations: 15.94 kB / 376.1 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.1707, allocations: 48.03 kB / 376.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.1708, allocations: 31.95 kB / 376.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.1708, allocations: 12 kB / 376.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003535/0.1712, allocations: 295.1 kB / 376.4 MB, free: 1.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1712, allocations: 0 / 376.4 MB, free: 1.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006626/0.1718, allocations: 175.5 kB / 376.6 MB, free: 1.348 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {3 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.002269/0.1741, allocations: 1.456 MB / 378.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.1757, allocations: 0.6544 MB / 378.7 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1757, allocations: 0 / 378.7 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.1768, allocations: 467 kB / 379.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.1773, allocations: 67.72 kB / 379.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.1806, allocations: 3.746 MB / 383 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.1811, allocations: 0.8754 MB / 383.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000202/0.1813, allocations: 48.45 kB / 383.9 MB, free: 9.848 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.1816, allocations: 187.4 kB / 384.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1816, allocations: 0 / 384.1 MB, free: 9.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.2089, allocations: 10.12 MB / 394.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.2091, allocations: 227.6 kB / 394.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.342, allocations: 0 / 394.4 MB, free: 15.59 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat does not exist to compare? outputFormat=mat