Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 193.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008123/0.0008122, allocations: 97.2 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002448, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2139, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.002694/0.2167, allocations: 2.376 MB / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.2179, allocations: 0.6471 MB / 410.5 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.2182, allocations: 4.75 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.2184, allocations: 35.75 kB / 410.6 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.2187, allocations: 81.22 kB / 410.6 MB, free: 24.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003153/0.2191, allocations: 60.67 kB / 410.7 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003444/0.2194, allocations: 339 kB / 411 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.2196, allocations: 96.81 kB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.2198, allocations: 119.6 kB / 411.2 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001947/0.22, allocations: 143.4 kB / 411.4 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.973e-05/0.2201, allocations: 20 kB / 411.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.182e-05/0.2202, allocations: 20 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.643e-05/0.2202, allocations: 51.77 kB / 411.5 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.237e-05/0.2203, allocations: 77.58 kB / 411.5 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.2205, allocations: 272.2 kB / 411.8 MB, free: 23.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2206, allocations: 7.938 kB / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.2206, allocations: 0 / 411.8 MB, free: 23.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.2206, allocations: 0 / 411.8 MB, free: 23.5 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001175/0.2218, allocations: 0.6223 MB / 412.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.2218, allocations: 8.031 kB / 412.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.2219, allocations: 35.62 kB / 412.5 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.2223, allocations: 259.5 kB / 412.7 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.2223, allocations: 20.56 kB / 412.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.2224, allocations: 24 kB / 412.8 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006891/0.223, allocations: 315.3 kB / 413.1 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.2231, allocations: 3.938 kB / 413.1 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.2231, allocations: 12 kB / 413.1 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.2231, allocations: 4 kB / 413.1 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007936/0.2239, allocations: 277.5 kB / 413.4 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2258, allocations: 1.105 MB / 414.5 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007328/0.2265, allocations: 242.6 kB / 414.7 MB, free: 20.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002899/0.2268, allocations: 108.8 kB / 414.8 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2269, allocations: 4 kB / 414.8 MB, free: 20.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004356/0.2273, allocations: 180.3 kB / 415 MB, free: 20.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.615e-06/0.2273, allocations: 0 / 415 MB, free: 20.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001976/0.2293, allocations: 0.5458 MB / 415.5 MB, free: 19.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.2294, allocations: 106.8 kB / 415.7 MB, free: 19.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.2296, allocations: 278.7 kB / 415.9 MB, free: 19.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.2297, allocations: 25.7 kB / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.61e-05/0.2298, allocations: 211.4 kB / 416.2 MB, free: 18.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.2298, allocations: 39.39 kB / 416.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/0.2298, allocations: 4 kB / 416.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.2299, allocations: 342.8 kB / 416.5 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.2302, allocations: 100.1 kB / 416.6 MB, free: 18.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.2305, allocations: 214.1 kB / 416.8 MB, free: 18.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/0.2309, allocations: 144.4 kB / 417 MB, free: 17.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.2309, allocations: 8 kB / 417 MB, free: 17.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001092/0.232, allocations: 443.6 kB / 417.4 MB, free: 17.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.232, allocations: 37.7 kB / 417.5 MB, free: 17.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.2321, allocations: 7.984 kB / 417.5 MB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003343/0.2324, allocations: 68.91 kB / 417.5 MB, free: 17.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.2326, allocations: 51.91 kB / 417.6 MB, free: 17.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.2344, allocations: 1.595 MB / 419.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.2348, allocations: 67.61 kB / 419.2 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.2348, allocations: 16 kB / 419.3 MB, free: 15.52 MB / 298.7 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 ($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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001265/0.235, allocations: 137.8 kB / 419.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.235, allocations: 27.7 kB / 419.4 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.235, allocations: 21.72 kB / 419.4 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.235, allocations: 7.938 kB / 419.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.2351, allocations: 3.984 kB / 419.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2351, allocations: 0 / 419.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.2353, allocations: 305.3 kB / 419.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2353, allocations: 0 / 419.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.2354, allocations: 27.97 kB / 419.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000225/0.2356, allocations: 68.8 kB / 419.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.2357, allocations: 4 kB / 419.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001515/0.2372, allocations: 1.578 MB / 421.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2372, allocations: 0 / 421.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009136/0.2381, allocations: 333.4 kB / 421.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.732e-05/0.2382, allocations: 124.7 kB / 421.9 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.2382, allocations: 4 kB / 421.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.2385, allocations: 35.95 kB / 421.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.2386, allocations: 23.97 kB / 421.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.2386, allocations: 4 kB / 421.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001432/0.2387, allocations: 202 kB / 422.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2387, allocations: 0 / 422.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003155/0.2391, allocations: 79.84 kB / 422.2 MB, free: 12.33 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 (7): * Single equations (assignments): 4 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001151/0.2392, allocations: 99.23 kB / 422.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008691/0.2401, allocations: 441.8 kB / 422.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2401, allocations: 0 / 422.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003875/0.2405, allocations: 231.2 kB / 423 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.2408, allocations: 39.44 kB / 423 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008907/0.2417, allocations: 0.5783 MB / 423.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.2418, allocations: 0.7521 MB / 424.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.303e-05/0.2419, allocations: 23.42 kB / 424.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2419, allocations: 0 / 424.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of Templates: time 0.004887/0.2468, allocations: 4.383 MB / 428.7 MB, free: 5.727 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches