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.002049/0.002049, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.426/1.426, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009354/0.000935, allocations: 96.08 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002801, allocations: 8 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.252, allocations: 50.39 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.3557, allocations: 82.84 MB / 484.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.356, allocations: 79.95 kB / 484.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0256/0.3816, allocations: 9.85 MB / 494.3 MB, free: 3.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3816, allocations: 0 / 494.3 MB, free: 3.648 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.407e-05/0.3817, allocations: 12 kB / 494.4 MB, free: 3.637 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.001594/0.3833, allocations: 0.8546 MB / 495.2 MB, free: 2.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.835e-05/0.3834, allocations: 12.03 kB / 495.2 MB, free: 2.719 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.3835, allocations: 98.5 kB / 495.3 MB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.3837, allocations: 71.25 kB / 495.4 MB, free: 2.543 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005872/0.3843, allocations: 398.8 kB / 495.8 MB, free: 2.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/0.3843, allocations: 41.31 kB / 495.8 MB, free: 2.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.83e-05/0.3844, allocations: 59.95 kB / 495.9 MB, free: 2.012 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009762/0.3854, allocations: 0.5456 MB / 496.4 MB, free: 1.453 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.3854, allocations: 0 / 496.4 MB, free: 1.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/0.3855, allocations: 24 kB / 496.4 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3855, allocations: 16 kB / 496.5 MB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008792/0.3864, allocations: 433 kB / 496.9 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.3895, allocations: 1.859 MB / 498.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008944/0.3904, allocations: 0.5409 MB / 499.3 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.3904, allocations: 4.328 kB / 499.3 MB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005698/0.391, allocations: 290.2 kB / 499.6 MB, free: 14.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.053e-06/0.391, allocations: 0 / 499.6 MB, free: 14.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003302/0.3943, allocations: 1.154 MB / 0.489 GB, free: 12.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.3945, allocations: 235.3 kB / 0.4892 GB, free: 12.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005043/0.395, allocations: 385 kB / 0.4896 GB, free: 12.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.3951, allocations: 37.64 kB / 0.4896 GB, free: 12.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.3953, allocations: 308.1 kB / 0.4899 GB, free: 11.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3954, allocations: 141.9 kB / 0.49 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.3955, allocations: 12 kB / 0.4901 GB, free: 11.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3956, allocations: 350.8 kB / 0.4904 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/0.396, allocations: 153 kB / 0.4905 GB, free: 11.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.3964, allocations: 317.6 kB / 0.4908 GB, free: 10.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.3968, allocations: 192.3 kB / 0.491 GB, free: 10.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3968, allocations: 4 kB / 0.491 GB, free: 10.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001627/0.3984, allocations: 0.7408 MB / 0.4918 GB, free: 9.965 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.3985, allocations: 11.98 kB / 0.4918 GB, free: 9.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3985, allocations: 4 kB / 0.4918 GB, free: 9.949 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005598/0.3991, allocations: 156.7 kB / 0.4919 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.3994, allocations: 87.83 kB / 0.492 GB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004221/0.4036, allocations: 2.583 MB / 0.4945 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005402/0.4042, allocations: 79.5 kB / 0.4946 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/0.4042, allocations: 20 kB / 0.4946 GB, free: 6.895 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 () * 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.000327/0.4046, allocations: 185.7 kB / 0.4948 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.561e-05/0.4047, allocations: 51.44 kB / 0.4948 GB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.4048, allocations: 52.86 kB / 0.4949 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4048, allocations: 4 kB / 0.4949 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4048, allocations: 0 / 0.4949 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4048, allocations: 4 kB / 0.4949 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.4071, allocations: 1.246 MB / 0.4961 GB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4071, allocations: 4 kB / 0.4961 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.4073, allocations: 51.91 kB / 0.4962 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004795/0.4078, allocations: 160.7 kB / 0.4963 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.4079, allocations: 4 kB / 0.4963 GB, free: 5.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004013/0.4119, allocations: 2.537 MB / 0.4988 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4119, allocations: 0 / 0.4988 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.4138, allocations: 0.894 MB / 0.4997 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.4139, allocations: 128.5 kB / 0.4998 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.096e-05/0.414, allocations: 15.94 kB / 0.4998 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.4144, allocations: 52.02 kB / 0.4999 GB, free: 1.277 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.824e-05/0.4145, allocations: 35.73 kB / 0.4999 GB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.4145, allocations: 12 kB / 0.4999 GB, free: 1.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003652/0.4149, allocations: 291.1 kB / 0.5002 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4149, allocations: 4 kB / 0.5002 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007215/0.4156, allocations: 179.5 kB / 0.5004 GB, free: 0.7695 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) * 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.285/0.7007, allocations: 1.455 MB / 0.5018 GB, free: 96.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.7027, allocations: 0.651 MB / 0.5024 GB, free: 96.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.7027, allocations: 1.438 kB / 0.5024 GB, free: 96.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.7038, allocations: 455.6 kB / 0.5029 GB, free: 96.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007109/0.7045, allocations: 70.72 kB / 0.5029 GB, free: 96.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.7077, allocations: 3.772 MB / 0.5066 GB, free: 93.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005418/0.7082, allocations: 0.8716 MB / 0.5075 GB, free: 92.87 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003204/0.7086, allocations: 49.5 kB / 0.5075 GB, free: 92.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/0.7089, allocations: 192 kB / 0.5077 GB, free: 92.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.904e-06/0.7089, allocations: 0 / 0.5077 GB, free: 92.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.7386, allocations: 10.37 MB / 0.5178 GB, free: 91.63 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/0.7388, allocations: 233.1 kB / 0.518 GB, free: 91.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/3.025, allocations: 0 / 0.518 GB, free: 91.39 MB / 378.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