Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001604/0.001604, allocations: 109.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002105/0.002105, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 247.6 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 60.09 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2648, allocations: 50.54 MB / 410 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00427/0.2691, allocations: 2.948 MB / 412.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.2706, allocations: 0.7479 MB / 413.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.2708, allocations: 7.938 kB / 413.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.271, allocations: 47.56 kB / 413.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.2712, allocations: 111.1 kB / 413.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.2715, allocations: 111.8 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.272, allocations: 418.4 kB / 414.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.2723, allocations: 131.2 kB / 414.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.2725, allocations: 163.4 kB / 414.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.2727, allocations: 171.2 kB / 414.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.2727, allocations: 40 kB / 414.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.564e-05/0.2728, allocations: 40 kB / 414.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.405e-05/0.2729, allocations: 79.75 kB / 415 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.273, allocations: 171.2 kB / 415.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004116/0.2735, allocations: 451.6 kB / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2735, allocations: 0 / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2735, allocations: 4 kB / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.2735, allocations: 0 / 415.6 MB, free: 12.02 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001298/0.2748, allocations: 0.6809 MB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2748, allocations: 8.031 kB / 416.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.783e-05/0.2749, allocations: 44.41 kB / 416.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003924/0.2753, allocations: 295.6 kB / 416.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.2754, allocations: 16.94 kB / 416.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.924e-05/0.2754, allocations: 28.38 kB / 416.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007037/0.2761, allocations: 327.9 kB / 416.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2761, allocations: 7.938 kB / 417 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.2762, allocations: 8 kB / 417 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2762, allocations: 11.98 kB / 417 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008242/0.277, allocations: 286 kB / 417.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.279, allocations: 1.146 MB / 418.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000861/0.2799, allocations: 250.5 kB / 418.6 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003411/0.2803, allocations: 104.8 kB / 418.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.2803, allocations: 4 kB / 418.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000473/0.2808, allocations: 177.9 kB / 418.9 MB, free: 8.438 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.693e-06/0.2808, allocations: 0 / 418.9 MB, free: 8.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002424/0.2832, allocations: 0.6701 MB / 419.6 MB, free: 7.742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/0.2833, allocations: 106.8 kB / 419.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003075/0.2836, allocations: 282.7 kB / 420 MB, free: 7.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.2837, allocations: 29.7 kB / 420 MB, free: 7.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.2838, allocations: 203.6 kB / 420.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.2838, allocations: 43.39 kB / 420.2 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-05/0.284, allocations: 61.78 kB / 420.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2841, allocations: 331 kB / 420.6 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/0.2845, allocations: 108.4 kB / 420.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.2849, allocations: 204.8 kB / 420.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007602/0.2857, allocations: 315.7 kB / 421.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2857, allocations: 0 / 421.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001298/0.287, allocations: 467.7 kB / 421.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.376e-05/0.287, allocations: 44.81 kB / 421.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.287, allocations: 0 / 421.7 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003819/0.2874, allocations: 76.81 kB / 421.8 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.2877, allocations: 55.92 kB / 421.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.2904, allocations: 1.993 MB / 423.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.2908, allocations: 55.86 kB / 423.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.2909, allocations: 12 kB / 423.9 MB, free: 3.098 MB / 334.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001689/0.291, allocations: 149.8 kB / 424.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.349e-05/0.2911, allocations: 27.72 kB / 424.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.825e-05/0.2911, allocations: 21.83 kB / 424.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2912, allocations: 8.062 kB / 424.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.2912, allocations: 4 kB / 424.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2912, allocations: 0 / 424.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003211/0.2915, allocations: 333.3 kB / 424.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2915, allocations: 4 kB / 424.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.2917, allocations: 15.98 kB / 424.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002907/0.292, allocations: 80.8 kB / 424.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.292, allocations: 8 kB / 424.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/0.2944, allocations: 1.801 MB / 426.4 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2944, allocations: 7.938 kB / 426.4 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.2956, allocations: 373.4 kB / 426.7 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.817e-05/0.2957, allocations: 104.8 kB / 426.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.2957, allocations: 4 kB / 426.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.296, allocations: 27.97 kB / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.049e-05/0.2961, allocations: 19.97 kB / 426.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.2961, allocations: 8 kB / 426.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.2963, allocations: 205.9 kB / 427.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2963, allocations: 0 / 427.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000398/0.2967, allocations: 79.84 kB / 427.2 MB, free: 15.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001333/0.2968, allocations: 102.6 kB / 427.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.298, allocations: 441.6 kB / 427.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.298, allocations: 0 / 427.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004976/0.2985, allocations: 235.3 kB / 427.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.2988, allocations: 48.52 kB / 428 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.2999, allocations: 0.5095 MB / 428.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.3003, allocations: 0.7558 MB / 429.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.448e-05/0.3004, allocations: 19.44 kB / 429.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3004, allocations: 0 / 429.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Templates: time 0.007322/0.3077, allocations: 4.799 MB / 434.1 MB, free: 8.617 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches