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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 173.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.3 MB / 235.5 MB, free: 2.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008104/0.0008103, allocations: 97.77 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.373e-05/2.375e-05, allocations: 8 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.08956, allocations: 50.43 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2948/0.3844, allocations: 82.75 MB / 477.1 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.3847, allocations: 83.94 kB / 477.2 MB, free: 4.617 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02541/0.4101, allocations: 9.853 MB / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.279e-06/0.4102, allocations: 0 / 487 MB, free: 10.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.647e-05/0.4102, allocations: 19.94 kB / 487.1 MB, free: 10.71 MB / 362.7 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.001391/0.4116, allocations: 0.7812 MB / 487.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.4117, allocations: 8.031 kB / 487.9 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/0.4118, allocations: 102.5 kB / 488 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.4119, allocations: 71.16 kB / 488 MB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.4124, allocations: 393.3 kB / 488.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/0.4125, allocations: 41.31 kB / 488.5 MB, free: 9.234 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.481e-05/0.4126, allocations: 67.94 kB / 488.5 MB, free: 9.168 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008655/0.4135, allocations: 0.5067 MB / 489 MB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.4135, allocations: 3.984 kB / 489 MB, free: 8.645 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.222e-05/0.4135, allocations: 24 kB / 489.1 MB, free: 8.621 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.4136, allocations: 12 kB / 489.1 MB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006125/0.4142, allocations: 357.2 kB / 489.4 MB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.4172, allocations: 1.852 MB / 491.3 MB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000719/0.4179, allocations: 0.4951 MB / 491.8 MB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008405/0.4188, allocations: 393.3 kB / 492.1 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.4188, allocations: 8.312 kB / 492.2 MB, free: 5.379 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004172/0.4192, allocations: 270.2 kB / 492.4 MB, free: 5.078 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.904e-06/0.4193, allocations: 0 / 492.4 MB, free: 5.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001443/0.4207, allocations: 0.5867 MB / 493 MB, free: 4.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001575/0.4209, allocations: 239.3 kB / 493.2 MB, free: 4.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004296/0.4213, allocations: 375.1 kB / 493.6 MB, free: 3.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.4214, allocations: 37.7 kB / 493.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.4216, allocations: 304.1 kB / 493.9 MB, free: 3.473 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.4217, allocations: 138 kB / 494.1 MB, free: 3.336 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.195e-05/0.4217, allocations: 12 kB / 494.1 MB, free: 3.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4218, allocations: 354.8 kB / 494.4 MB, free: 2.969 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.4221, allocations: 125.1 kB / 494.6 MB, free: 2.848 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003098/0.4224, allocations: 293.6 kB / 494.8 MB, free: 2.488 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.4226, allocations: 169.5 kB / 495 MB, free: 2.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4226, allocations: 0 / 495 MB, free: 2.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001441/0.4241, allocations: 0.7056 MB / 495.7 MB, free: 1.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.4241, allocations: 4 kB / 495.7 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.4241, allocations: 4 kB / 495.7 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004987/0.4246, allocations: 173.9 kB / 495.9 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/0.425, allocations: 83.84 kB / 496 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002986/0.428, allocations: 2.42 MB / 498.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004788/0.4285, allocations: 87.47 kB / 498.5 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/0.4285, allocations: 27.92 kB / 498.5 MB, free: 14.68 MB / 378.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: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 15} Notification: Performance of prepare postOptimizeDAE: time 0.0001211/0.4286, allocations: 136.8 kB / 498.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-05/0.4287, allocations: 47.44 kB / 498.7 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.4288, allocations: 56.66 kB / 498.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.4288, allocations: 4 kB / 498.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.4288, allocations: 4 kB / 498.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.4289, allocations: 3.984 kB / 498.7 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.4308, allocations: 1.206 MB / 500 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4308, allocations: 0 / 500 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.431, allocations: 51.91 kB / 0.4883 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004006/0.4314, allocations: 170 kB / 0.4884 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.4315, allocations: 11.98 kB / 0.4885 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002727/0.4342, allocations: 2.352 MB / 0.4908 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4342, allocations: 11.94 kB / 0.4908 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.4358, allocations: 0.8353 MB / 0.4916 GB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.4359, allocations: 132.3 kB / 0.4917 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.4359, allocations: 15.98 kB / 0.4917 GB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003712/0.4363, allocations: 48.03 kB / 0.4918 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.4364, allocations: 27.95 kB / 0.4918 GB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.4364, allocations: 12 kB / 0.4918 GB, free: 9.328 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003008/0.4367, allocations: 297.2 kB / 0.4921 GB, free: 9.039 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4368, allocations: 0 / 0.4921 GB, free: 9.039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005797/0.4373, allocations: 183.6 kB / 0.4923 GB, free: 8.859 MB / 378.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001826/0.4392, allocations: 1.416 MB / 0.4937 GB, free: 7.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008342/0.44, allocations: 0.526 MB / 0.4942 GB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.44, allocations: 4 kB / 0.4942 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004928/0.4405, allocations: 350.2 kB / 0.4945 GB, free: 6.512 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.4409, allocations: 80 kB / 0.4946 GB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.4423, allocations: 0.7269 MB / 0.4953 GB, free: 5.672 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.4427, allocations: 0.8754 MB / 0.4961 GB, free: 4.766 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001944/0.4429, allocations: 52.55 kB / 0.4962 GB, free: 4.715 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002156/0.4431, allocations: 187.4 kB / 0.4964 GB, free: 4.531 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4431, allocations: 0 / 0.4964 GB, free: 4.531 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02532/0.4684, allocations: 10.96 MB / 0.5071 GB, free: 9.809 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.4687, allocations: 194.8 kB / 0.5073 GB, free: 9.586 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.573, allocations: 0 / 0.5073 GB, free: 9.586 MB / 394.7 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