Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.409/1.409, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 59.91 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2517, allocations: 50.54 MB / 410.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004137/0.2559, allocations: 2.823 MB / 413 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2571, allocations: 0.6777 MB / 413.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2572, allocations: 4 kB / 413.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.2573, allocations: 43.56 kB / 413.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.2575, allocations: 95.19 kB / 413.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.2578, allocations: 83.83 kB / 413.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004456/0.2582, allocations: 386.5 kB / 414.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.2584, allocations: 86.94 kB / 414.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.2586, allocations: 147.5 kB / 414.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.2588, allocations: 163.3 kB / 414.7 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.76e-05/0.2589, allocations: 32 kB / 414.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.18e-05/0.2589, allocations: 36 kB / 414.8 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.184e-05/0.259, allocations: 67.77 kB / 414.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2592, allocations: 171.2 kB / 415 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004349/0.2596, allocations: 370.4 kB / 415.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2596, allocations: 3.938 kB / 415.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2596, allocations: 4 kB / 415.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2597, allocations: 0 / 415.4 MB, free: 12.25 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001354/0.261, allocations: 0.6573 MB / 416 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.261, allocations: 12.03 kB / 416 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.7e-05/0.2611, allocations: 36.7 kB / 416.1 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.2616, allocations: 288.7 kB / 416.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2616, allocations: 12.94 kB / 416.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.819e-05/0.2616, allocations: 28.31 kB / 416.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007154/0.2623, allocations: 307.7 kB / 416.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2624, allocations: 0 / 416.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.2624, allocations: 12 kB / 416.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.2624, allocations: 4 kB / 416.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008222/0.2632, allocations: 257.5 kB / 417 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2651, allocations: 1.086 MB / 418.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008309/0.2659, allocations: 202.5 kB / 418.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.2662, allocations: 80.89 kB / 418.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.2663, allocations: 15.88 kB / 418.3 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004747/0.2667, allocations: 161.9 kB / 418.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.2667, allocations: 0 / 418.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.002133/0.2689, allocations: 0.5068 MB / 419 MB, free: 8.348 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.846e-05/0.2689, allocations: 114.8 kB / 419.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/0.2693, allocations: 282.6 kB / 419.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.2693, allocations: 29.7 kB / 419.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.2695, allocations: 200 kB / 419.6 MB, free: 7.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.339e-05/0.2695, allocations: 47.69 kB / 419.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.2696, allocations: 49.89 kB / 419.7 MB, free: 7.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2698, allocations: 338.8 kB / 420.1 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.2701, allocations: 88.16 kB / 420.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004491/0.2706, allocations: 210 kB / 420.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007396/0.2713, allocations: 305.5 kB / 420.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.2713, allocations: 3.938 kB / 420.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001277/0.2726, allocations: 415.8 kB / 421.1 MB, free: 6.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.417e-05/0.2726, allocations: 33.86 kB / 421.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.2726, allocations: 8 kB / 421.1 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000383/0.273, allocations: 76.73 kB / 421.2 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.2732, allocations: 43.91 kB / 421.2 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.2759, allocations: 1.72 MB / 422.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.2762, allocations: 51.75 kB / 423 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.2763, allocations: 16.06 kB / 423 MB, free: 4.043 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001928/0.2764, allocations: 153.6 kB / 423.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.667e-05/0.2765, allocations: 35.73 kB / 423.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.2765, allocations: 21.72 kB / 423.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2766, allocations: 0 / 423.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2766, allocations: 3.984 kB / 423.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2766, allocations: 0 / 423.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003123/0.2769, allocations: 305.4 kB / 423.5 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2769, allocations: 4 kB / 423.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.277, allocations: 19.97 kB / 423.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000289/0.2773, allocations: 72.92 kB / 423.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2773, allocations: 4 kB / 423.6 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/0.2797, allocations: 1.7 MB / 425.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2797, allocations: 0 / 425.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.2807, allocations: 313.5 kB / 425.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.2809, allocations: 112.9 kB / 425.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.2809, allocations: 0 / 425.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.2812, allocations: 31.97 kB / 425.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.2813, allocations: 19.97 kB / 425.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.2813, allocations: 8 kB / 425.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.2815, allocations: 205.9 kB / 426 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2815, allocations: 0 / 426 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.2819, allocations: 75.89 kB / 426.1 MB, free: 0.7383 MB / 334.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 (7): * Single equations (assignments): 4 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001429/0.282, allocations: 111.2 kB / 426.2 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.283, allocations: 409.2 kB / 426.6 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.283, allocations: 0 / 426.6 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004886/0.2835, allocations: 218.6 kB / 426.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.2838, allocations: 53.66 kB / 426.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.2849, allocations: 471.5 kB / 427.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.2853, allocations: 0.7518 MB / 428 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.2854, allocations: 22.3 kB / 428.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.061e-05/0.2855, allocations: 23.42 kB / 428.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2855, allocations: 7.938 kB / 428.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of Templates: time 0.009093/0.2946, allocations: 4.249 MB / 432.3 MB, free: 10.38 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches