Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 202.7 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.134/1.134, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008714/0.0008714, allocations: 93.89 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09404/0.09494, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.1783, allocations: 51.48 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.3852, allocations: 82.85 MB / 477.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.3854, allocations: 79.34 kB / 477.6 MB, free: 10.03 MB / 346.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.02365/0.4091, allocations: 10.42 MB / 488.1 MB, free: 1.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.4091, allocations: 8 kB / 488.1 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002775/0.4094, allocations: 103.1 kB / 488.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004362/0.4098, allocations: 399.3 kB / 488.6 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.4099, allocations: 22.19 kB / 488.6 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.793e-05/0.4099, allocations: 31.91 kB / 488.6 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005122/0.4105, allocations: 337.2 kB / 489 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.411, allocations: 438.3 kB / 489.4 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.4111, allocations: 1.031 kB / 489.4 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.4111, allocations: 7.828 kB / 489.4 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.4111, allocations: 12 kB / 489.4 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002591/0.4137, allocations: 1.768 MB / 491.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004936/0.4142, allocations: 296.4 kB / 491.5 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.4146, allocations: 232.6 kB / 491.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.4146, allocations: 8.312 kB / 491.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.4149, allocations: 243.1 kB / 491.9 MB, free: 14.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.563e-06/0.4149, allocations: 0 / 491.9 MB, free: 14.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001123/0.4161, allocations: 0.4954 MB / 492.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/0.4162, allocations: 239.3 kB / 492.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.4165, allocations: 340.3 kB / 493 MB, free: 13.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.4165, allocations: 25.7 kB / 493 MB, free: 13.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.4167, allocations: 270.7 kB / 493.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.25e-05/0.4168, allocations: 137.3 kB / 493.4 MB, free: 13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.4168, allocations: 0 / 493.4 MB, free: 13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4169, allocations: 353.8 kB / 493.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.4171, allocations: 103.6 kB / 493.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.4174, allocations: 273.4 kB / 494.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.4176, allocations: 151.2 kB / 494.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4176, allocations: 0 / 494.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001252/0.4189, allocations: 0.6152 MB / 494.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.4189, allocations: 4 kB / 494.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.4189, allocations: 4.438 kB / 494.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003466/0.4193, allocations: 124.3 kB / 495 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.4196, allocations: 87.83 kB / 495.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002937/0.4226, allocations: 2.243 MB / 497.4 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004355/0.423, allocations: 75.64 kB / 497.4 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.063e-05/0.4231, allocations: 24.86 kB / 497.5 MB, free: 9.359 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.in_n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real resistorGround.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 (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 {3 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.4232, allocations: 123.8 kB / 497.6 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.4233, allocations: 47.44 kB / 497.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.4234, allocations: 47.36 kB / 497.7 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.4234, allocations: 4 kB / 497.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.4234, allocations: 0 / 497.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4234, allocations: 3.984 kB / 497.7 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.4251, allocations: 1.055 MB / 498.7 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4251, allocations: 4.562 kB / 498.7 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.4253, allocations: 43.97 kB / 498.8 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003049/0.4256, allocations: 124.3 kB / 498.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/0.4257, allocations: 4.562 kB / 498.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002824/0.4285, allocations: 2.227 MB / 0.4894 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4285, allocations: 0 / 0.4894 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001377/0.4299, allocations: 0.7511 MB / 0.4901 GB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001635/0.4316, allocations: 1.278 MB / 0.4914 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.4317, allocations: 129.7 kB / 0.4915 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.4318, allocations: 0 / 0.4915 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.4321, allocations: 44.03 kB / 0.4915 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.4322, allocations: 17.78 kB / 0.4915 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.4322, allocations: 15.67 kB / 0.4916 GB, free: 4.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003126/0.4326, allocations: 258.2 kB / 0.4918 GB, free: 3.973 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001189/0.4337, allocations: 173.2 kB / 0.492 GB, free: 3.805 MB / 362.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 (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.0001918/0.4339, allocations: 115.7 kB / 0.4921 GB, free: 3.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.435, allocations: 0.5395 MB / 0.4926 GB, free: 3.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.435, allocations: 0 / 0.4926 GB, free: 3.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007445/0.4358, allocations: 383.1 kB / 0.493 GB, free: 2.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.4361, allocations: 60.17 kB / 0.493 GB, free: 2.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.4374, allocations: 0.6165 MB / 0.4936 GB, free: 2.297 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005059/0.4379, allocations: 0.9018 MB / 0.4945 GB, free: 1.367 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4379, allocations: 0 / 0.4945 GB, free: 1.367 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat does not exist to compare? outputFormat=mat