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.001275/0.001275, allocations: 85.14 kB / 16.31 MB, free: 6.449 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.001821/0.001821, allocations: 180.4 kB / 17.21 MB, free: 6.32 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.431/1.431, allocations: 223.2 MB / 241.2 MB, free: 5.277 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002616, allocations: 9.25 kB / 300.9 MB, free: 5.578 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 50.43 MB / 351.4 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.004482/0.118, allocations: 3.848 MB / 355.2 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.1202, allocations: 1.157 MB / 356.4 MB, free: 6.316 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002764/0.1205, allocations: 11.94 kB / 356.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000328/0.1208, allocations: 107.2 kB / 356.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003439/0.1212, allocations: 166.6 kB / 356.6 MB, free: 6.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1216, allocations: 139.8 kB / 356.8 MB, free: 5.898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006958/0.1223, allocations: 0.7006 MB / 357.5 MB, free: 5.191 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003905/0.1227, allocations: 199.9 kB / 357.7 MB, free: 4.992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/0.123, allocations: 235 kB / 357.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003502/0.1233, allocations: 274.8 kB / 358.2 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.1235, allocations: 32 kB / 358.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.03e-05/0.1236, allocations: 35.94 kB / 358.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.1237, allocations: 107.5 kB / 358.3 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.1239, allocations: 133.4 kB / 358.5 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006393/0.1245, allocations: 0.5297 MB / 359 MB, free: 3.652 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1245, allocations: 3.984 kB / 359 MB, free: 3.648 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1245, allocations: 0 / 359 MB, free: 3.648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.1246, allocations: 8 kB / 359 MB, free: 3.641 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.001604/0.1262, allocations: 0.8572 MB / 359.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.1262, allocations: 16.03 kB / 359.9 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.1264, allocations: 102.4 kB / 360 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.1265, allocations: 75.16 kB / 360.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.127, allocations: 384.9 kB / 360.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.1271, allocations: 41.31 kB / 360.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.814e-05/0.1272, allocations: 52 kB / 360.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009994/0.1282, allocations: 0.5612 MB / 361.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.1282, allocations: 3.906 kB / 361.1 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.243e-05/0.1283, allocations: 20 kB / 361.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.1283, allocations: 16 kB / 361.1 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008543/0.1291, allocations: 429 kB / 361.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002931/0.1321, allocations: 1.855 MB / 363.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/0.1329, allocations: 0.5246 MB / 363.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008603/0.1338, allocations: 437.1 kB / 364.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.1338, allocations: 8.266 kB / 364.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005561/0.1344, allocations: 310.1 kB / 364.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.964e-06/0.1344, allocations: 4 kB / 364.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.003663/0.1381, allocations: 1.345 MB / 366 MB, free: 12.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.1382, allocations: 239.3 kB / 366.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005452/0.1388, allocations: 429.8 kB / 366.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1388, allocations: 29.7 kB / 366.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.1391, allocations: 308.1 kB / 367 MB, free: 11.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.1392, allocations: 138 kB / 367.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.1393, allocations: 16 kB / 367.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1394, allocations: 354.8 kB / 367.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.1398, allocations: 153 kB / 367.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.1402, allocations: 329.6 kB / 368 MB, free: 10.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004002/0.1406, allocations: 201.5 kB / 368.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.1407, allocations: 0 / 368.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001692/0.1424, allocations: 0.8114 MB / 369 MB, free: 9.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.1424, allocations: 8 kB / 369 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1424, allocations: 7.953 kB / 369 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006935/0.1431, allocations: 218.2 kB / 369.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1434, allocations: 75.89 kB / 369.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/0.1479, allocations: 2.917 MB / 372.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.1484, allocations: 103.4 kB / 372.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.1484, allocations: 23.98 kB / 372.3 MB, free: 5.727 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 (42): * Single equations (assignments): 41 * 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 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002513/0.1487, allocations: 185.6 kB / 372.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.357e-05/0.1488, allocations: 47.44 kB / 372.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.1489, allocations: 60.81 kB / 372.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.1489, allocations: 4 kB / 372.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.1489, allocations: 4 kB / 372.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.1489, allocations: 3.984 kB / 372.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.1511, allocations: 1.301 MB / 373.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.1511, allocations: 0 / 373.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.1513, allocations: 39.91 kB / 374 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005721/0.1518, allocations: 220.8 kB / 374.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.1519, allocations: 8 kB / 374.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003794/0.1557, allocations: 2.802 MB / 377 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.1557, allocations: 0 / 377 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.1576, allocations: 0.975 MB / 378 MB, free: 15.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.1577, allocations: 132.5 kB / 378.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.1578, allocations: 12 kB / 378.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.1581, allocations: 43.97 kB / 378.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.817e-05/0.1582, allocations: 35.95 kB / 378.2 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.608e-05/0.1583, allocations: 16.08 kB / 378.2 MB, free: 15.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003494/0.1586, allocations: 291.2 kB / 378.5 MB, free: 15.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1586, allocations: 0 / 378.5 MB, free: 15.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007005/0.1593, allocations: 183.6 kB / 378.7 MB, free: 15.14 MB / 318.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 (21): * Single equations (assignments): 19 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.002315/0.1616, allocations: 1.536 MB / 380.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.1633, allocations: 0.6849 MB / 380.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1633, allocations: 0 / 380.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008094/0.1641, allocations: 433 kB / 381.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.1648, allocations: 77.47 kB / 381.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.17, allocations: 3.114 MB / 384.5 MB, free: 9.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004431/0.1704, allocations: 0.8593 MB / 385.3 MB, free: 8.258 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002078/0.1707, allocations: 48.45 kB / 385.4 MB, free: 8.211 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.1709, allocations: 183.4 kB / 385.6 MB, free: 8.031 MB / 318.1 MB Notification: Performance of SimCode: time 2.385e-06/0.1709, allocations: 0 / 385.6 MB, free: 8.031 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.1973, allocations: 10.99 MB / 396.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.1975, allocations: 235.9 kB / 396.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.271/2.469, allocations: 4 kB / 396.8 MB, free: 13.09 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