Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001724/0.001724, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 226.6 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008207/0.0008206, allocations: 101.4 kB / 296.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002537, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1971, allocations: 51.28 MB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.002143/0.1993, allocations: 2.51 MB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009639/0.2003, allocations: 0.7171 MB / 411.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.2005, allocations: 4.531 kB / 411.3 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.2006, allocations: 41.69 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.2007, allocations: 79.38 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002154/0.201, allocations: 77.22 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.2012, allocations: 378.4 kB / 411.8 MB, free: 23.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.2014, allocations: 104.7 kB / 412 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.2016, allocations: 119.5 kB / 412.1 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.2017, allocations: 155.2 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.2018, allocations: 16 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.23e-05/0.2018, allocations: 16 kB / 412.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.177e-05/0.2019, allocations: 51.77 kB / 412.3 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.202, allocations: 176.9 kB / 412.5 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.2022, allocations: 348 kB / 412.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2022, allocations: 0 / 412.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2022, allocations: 4 kB / 412.8 MB, free: 22.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2022, allocations: 4 kB / 412.8 MB, free: 22.96 MB / 298.7 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.0009776/0.2032, allocations: 0.6303 MB / 413.5 MB, free: 22.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.2033, allocations: 8.031 kB / 413.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.687e-05/0.2033, allocations: 32.56 kB / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/0.2036, allocations: 303.5 kB / 413.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.2036, allocations: 32.86 kB / 413.8 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.2037, allocations: 20.38 kB / 413.8 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006252/0.2043, allocations: 344 kB / 414.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.2043, allocations: 0 / 414.2 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.2044, allocations: 8 kB / 414.2 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.2044, allocations: 8 kB / 414.2 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007017/0.2051, allocations: 318 kB / 414.5 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.2066, allocations: 1.174 MB / 415.7 MB, free: 19.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007195/0.2073, allocations: 282.5 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.2076, allocations: 124.8 kB / 416.1 MB, free: 19.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.2077, allocations: 0 / 416.1 MB, free: 19.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.2081, allocations: 205.2 kB / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.2081, allocations: 0 / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002015/0.2101, allocations: 0.741 MB / 417 MB, free: 18.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.2102, allocations: 106.8 kB / 417.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.2104, allocations: 282.6 kB / 417.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.2104, allocations: 29.7 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.498e-05/0.2105, allocations: 207.6 kB / 417.6 MB, free: 17.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.2106, allocations: 43.39 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.347e-05/0.2106, allocations: 4 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.858e-05/0.2106, allocations: 334.8 kB / 418 MB, free: 17.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003109/0.2109, allocations: 124.2 kB / 418.1 MB, free: 17.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.2113, allocations: 213.3 kB / 418.3 MB, free: 17.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000599/0.2119, allocations: 352.6 kB / 418.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2119, allocations: 8 kB / 418.7 MB, free: 16.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001118/0.213, allocations: 0.5101 MB / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.2131, allocations: 37.7 kB / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2131, allocations: 0 / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003331/0.2134, allocations: 92.86 kB / 419.3 MB, free: 16.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2136, allocations: 55.84 kB / 419.4 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.2158, allocations: 1.912 MB / 421.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.2161, allocations: 67.77 kB / 421.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.2161, allocations: 19.94 kB / 421.4 MB, free: 13.85 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (24): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001496/0.2163, allocations: 146.6 kB / 421.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.203e-05/0.2163, allocations: 23.94 kB / 421.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.2164, allocations: 25.83 kB / 421.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2164, allocations: 7.938 kB / 421.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.2164, allocations: 3.938 kB / 421.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2164, allocations: 0 / 421.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.2166, allocations: 333.4 kB / 421.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2166, allocations: 0 / 421.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.2168, allocations: 27.97 kB / 421.9 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002476/0.217, allocations: 88.8 kB / 422 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.217, allocations: 4 kB / 422 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.2188, allocations: 1.822 MB / 423.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2188, allocations: 128 / 423.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009129/0.2197, allocations: 409.5 kB / 424.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.2198, allocations: 96.91 kB / 424.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.2198, allocations: 4 kB / 424.3 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.22, allocations: 43.95 kB / 424.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.2201, allocations: 23.97 kB / 424.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.2201, allocations: 0 / 424.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001762/0.2203, allocations: 206 kB / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2203, allocations: 0 / 424.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.2207, allocations: 75.75 kB / 424.7 MB, free: 10.31 MB / 298.7 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 (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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001069/0.2208, allocations: 107.2 kB / 424.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.222, allocations: 0.5329 MB / 425.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.222, allocations: 0 / 425.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004054/0.2224, allocations: 255.1 kB / 425.6 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.2227, allocations: 64.3 kB / 425.6 MB, free: 9.324 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.2254, allocations: 1.115 MB / 426.7 MB, free: 8.176 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.2255, allocations: 0.7521 MB / 427.5 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.937e-05/0.2256, allocations: 23.44 kB / 427.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2256, allocations: 0 / 427.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of Templates: time 0.005166/0.2308, allocations: 4.721 MB / 432.2 MB, free: 2.676 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches