Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009707/0.0009708, allocations: 198.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008685/0.0008685, allocations: 105.9 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002412, allocations: 8 kB / 358 MB, free: 9.199 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1772, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08722/0.2644, allocations: 82.3 MB / 491.8 MB, free: 8.262 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/0.2647, allocations: 83.95 kB / 491.9 MB, free: 8.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01643/0.2811, allocations: 6.329 MB / 498.2 MB, free: 1.828 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2811, allocations: 0 / 498.2 MB, free: 1.828 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.2811, allocations: 16 kB / 498.2 MB, free: 1.812 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001019/0.2822, allocations: 0.6195 MB / 498.9 MB, free: 1.141 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2822, allocations: 15.97 kB / 498.9 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.63e-05/0.2823, allocations: 58.55 kB / 498.9 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.326e-05/0.2824, allocations: 32.31 kB / 499 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.2827, allocations: 291.9 kB / 499.3 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.2827, allocations: 24.56 kB / 499.3 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.2828, allocations: 24 kB / 499.3 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006607/0.2835, allocations: 323.6 kB / 499.6 MB, free: 332 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.2835, allocations: 0 / 499.6 MB, free: 332 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.2835, allocations: 12 kB / 499.6 MB, free: 320 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2835, allocations: 4 kB / 499.6 MB, free: 316 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007886/0.2843, allocations: 306 kB / 499.9 MB, free: 8 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.2861, allocations: 1.142 MB / 0.4893 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008541/0.287, allocations: 290.5 kB / 0.4896 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.287, allocations: 0 / 0.4896 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004484/0.2874, allocations: 190 kB / 0.4898 GB, free: 14.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.2874, allocations: 224 / 0.4898 GB, free: 14.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.00103/0.2885, allocations: 355.8 kB / 0.4901 GB, free: 13.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.2885, allocations: 85.11 kB / 0.4902 GB, free: 13.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.2888, allocations: 245.6 kB / 0.4904 GB, free: 13.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.2888, allocations: 29.69 kB / 0.4905 GB, free: 13.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.935e-05/0.2889, allocations: 191.6 kB / 0.4907 GB, free: 13.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.289, allocations: 39.45 kB / 0.4907 GB, free: 13.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.303e-05/0.289, allocations: 4 kB / 0.4907 GB, free: 13.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.2891, allocations: 330.8 kB / 0.491 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003376/0.2894, allocations: 120.1 kB / 0.4911 GB, free: 12.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.2898, allocations: 215.2 kB / 0.4913 GB, free: 12.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.2902, allocations: 160.5 kB / 0.4915 GB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2902, allocations: 0 / 0.4915 GB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008325/0.291, allocations: 386.8 kB / 0.4919 GB, free: 12.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.2911, allocations: 37.7 kB / 0.4919 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2911, allocations: 8.156 kB / 0.4919 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.2911, allocations: 4 kB / 0.4919 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.2914, allocations: 75.88 kB / 0.492 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.2914, allocations: 4 kB / 0.492 GB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.2917, allocations: 59.75 kB / 0.492 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.2917, allocations: 19.94 kB / 0.492 GB, free: 11.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.2919, allocations: 141.8 kB / 0.4922 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.2919, allocations: 19.72 kB / 0.4922 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.365e-05/0.292, allocations: 29.7 kB / 0.4922 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.292, allocations: 0 / 0.4922 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.292, allocations: 4 kB / 0.4922 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.292, allocations: 0 / 0.4922 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.2923, allocations: 309.4 kB / 0.4925 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.2923, allocations: 4 kB / 0.4925 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.2925, allocations: 51.95 kB / 0.4926 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2926, allocations: 4 kB / 0.4926 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.2926, allocations: 7.984 kB / 0.4926 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2926, allocations: 0 / 0.4926 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2926, allocations: 0 / 0.4926 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.2936, allocations: 416.5 kB / 0.493 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.2937, allocations: 104.8 kB / 0.4931 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.2937, allocations: 0 / 0.4931 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.294, allocations: 47.95 kB / 0.4931 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.751e-05/0.294, allocations: 19.97 kB / 0.4932 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.2941, allocations: 4 kB / 0.4932 GB, free: 10.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001637/0.2942, allocations: 182 kB / 0.4933 GB, free: 10.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2942, allocations: 0 / 0.4933 GB, free: 10.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002798/0.2945, allocations: 67.84 kB / 0.4934 GB, free: 10.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001344/0.2959, allocations: 0.9517 MB / 0.4943 GB, free: 9.398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007502/0.2966, allocations: 321 kB / 0.4946 GB, free: 9.074 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2967, allocations: 0 / 0.4946 GB, free: 9.074 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.297, allocations: 120.4 kB / 0.4948 GB, free: 8.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.2972, allocations: 46.77 kB / 0.4948 GB, free: 8.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.3006, allocations: 3.377 MB / 0.4981 GB, free: 5.441 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.3009, allocations: 0.7521 MB / 0.4988 GB, free: 4.664 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000135/0.301, allocations: 30.28 kB / 0.4989 GB, free: 4.629 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.3012, allocations: 83.41 kB / 0.4989 GB, free: 4.547 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3012, allocations: 0 / 0.4989 GB, free: 4.547 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1673/0.4684, allocations: 4.867 MB / 0.5037 GB, free: 95.54 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001221/0.4686, allocations: 189.8 kB / 0.5039 GB, free: 95.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.109, allocations: 0 / 0.5039 GB, free: 95.3 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat