Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 200.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007619/0.0007619, allocations: 105.3 kB / 296.8 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002288/0.000229, allocations: 8 kB / 356.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2035, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00216/0.2057, allocations: 2.515 MB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009538/0.2067, allocations: 0.7174 MB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.2068, allocations: 4.75 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.2069, allocations: 39.69 kB / 411.3 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.2071, allocations: 82.31 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002202/0.2073, allocations: 75.84 kB / 411.5 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002779/0.2076, allocations: 370.5 kB / 411.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.2078, allocations: 102 kB / 411.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.208, allocations: 127.4 kB / 412.1 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.2081, allocations: 144.9 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.27e-05/0.2082, allocations: 23.94 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.179e-05/0.2083, allocations: 16 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.313e-05/0.2083, allocations: 55.75 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.2084, allocations: 177 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.2087, allocations: 348 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2087, allocations: 0 / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2087, allocations: 0 / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.2087, allocations: 4 kB / 412.8 MB, free: 22.89 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.00102/0.2097, allocations: 0.6342 MB / 413.5 MB, free: 22.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2098, allocations: 8.031 kB / 413.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.2098, allocations: 32.56 kB / 413.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.2101, allocations: 303.5 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.2101, allocations: 24.88 kB / 413.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.2102, allocations: 24.38 kB / 413.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006209/0.2108, allocations: 336 kB / 414.2 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.2108, allocations: 4 kB / 414.2 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.2109, allocations: 11.98 kB / 414.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.393e-06/0.2109, allocations: 8 kB / 414.2 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007073/0.2116, allocations: 318 kB / 414.5 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.2132, allocations: 1.17 MB / 415.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007487/0.2139, allocations: 286.5 kB / 416 MB, free: 19.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002945/0.2142, allocations: 120.8 kB / 416.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.2143, allocations: 4 kB / 416.1 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004354/0.2147, allocations: 201.5 kB / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.853e-06/0.2147, allocations: 0 / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002049/0.2168, allocations: 0.7371 MB / 417 MB, free: 18.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.2168, allocations: 110.8 kB / 417.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.2171, allocations: 290.5 kB / 417.4 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.2171, allocations: 25.7 kB / 417.4 MB, free: 18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.002e-05/0.2172, allocations: 191.7 kB / 417.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.2172, allocations: 47.3 kB / 417.7 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.2173, allocations: 8 kB / 417.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.2173, allocations: 330.8 kB / 418 MB, free: 17.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.2176, allocations: 124.4 kB / 418.1 MB, free: 17.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003388/0.218, allocations: 224.9 kB / 418.3 MB, free: 17.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006142/0.2186, allocations: 335.7 kB / 418.7 MB, free: 16.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2186, allocations: 4 kB / 418.7 MB, free: 16.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00109/0.2197, allocations: 0.5025 MB / 419.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.2198, allocations: 33.7 kB / 419.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.2198, allocations: 3.984 kB / 419.2 MB, free: 16.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.2201, allocations: 96.8 kB / 419.3 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.2204, allocations: 51.91 kB / 419.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.2224, allocations: 1.826 MB / 421.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003192/0.2227, allocations: 71.7 kB / 421.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.2227, allocations: 8 kB / 421.3 MB, free: 13.91 MB / 298.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 (23): * Single equations (assignments): 21 * 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.0001337/0.2229, allocations: 153.8 kB / 421.4 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.2229, allocations: 23.72 kB / 421.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.969e-05/0.2229, allocations: 25.83 kB / 421.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.223, allocations: 4 kB / 421.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.223, allocations: 0 / 421.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.223, allocations: 4.219 kB / 421.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.2232, allocations: 337.2 kB / 421.8 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2232, allocations: 3.938 kB / 421.8 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.2233, allocations: 23.98 kB / 421.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002484/0.2236, allocations: 84.8 kB / 421.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.2236, allocations: 0 / 421.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001687/0.2253, allocations: 1.714 MB / 423.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2253, allocations: 4.031 kB / 423.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000936/0.2263, allocations: 401.4 kB / 424 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.2263, allocations: 108.7 kB / 424.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.2264, allocations: 8 kB / 424.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.2266, allocations: 39.95 kB / 424.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.083e-05/0.2267, allocations: 23.97 kB / 424.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.2267, allocations: 8 kB / 424.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001587/0.2269, allocations: 194 kB / 424.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2269, allocations: 4 kB / 424.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003558/0.2273, allocations: 75.84 kB / 424.5 MB, free: 10.46 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.0001362/0.2274, allocations: 103.2 kB / 424.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008919/0.2283, allocations: 457.9 kB / 425 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2283, allocations: 0 / 425 MB, free: 9.879 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.2287, allocations: 250.5 kB / 425.3 MB, free: 9.625 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.2291, allocations: 58.8 kB / 425.3 MB, free: 9.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008608/0.2299, allocations: 0.6015 MB / 425.9 MB, free: 8.934 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.2301, allocations: 0.7521 MB / 426.7 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.915e-05/0.2302, allocations: 27.42 kB / 426.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2302, allocations: 0 / 426.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of Templates: time 0.00515/0.2353, allocations: 4.697 MB / 431.4 MB, free: 3.461 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches