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.001163/0.001163, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 59.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2336, allocations: 50.55 MB / 410 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003668/0.2373, allocations: 2.944 MB / 412.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.2385, allocations: 0.7518 MB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.2386, allocations: 8 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.2388, allocations: 47.5 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.239, allocations: 95.19 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.2393, allocations: 127.8 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003923/0.2397, allocations: 414.4 kB / 414.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.2399, allocations: 131.2 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.24, allocations: 155.4 kB / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.2402, allocations: 175.2 kB / 414.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.558e-05/0.2403, allocations: 44 kB / 414.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.745e-05/0.2404, allocations: 40 kB / 414.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.537e-05/0.2404, allocations: 83.69 kB / 415 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.2406, allocations: 171.2 kB / 415.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003769/0.241, allocations: 455.6 kB / 415.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.241, allocations: 4 kB / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.241, allocations: 0 / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.241, allocations: 0 / 415.6 MB, free: 11.91 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.001159/0.2422, allocations: 0.6692 MB / 416.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/0.2422, allocations: 8.031 kB / 416.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.2423, allocations: 36.47 kB / 416.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.2426, allocations: 315.5 kB / 416.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.2427, allocations: 16.94 kB / 416.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.2427, allocations: 20.38 kB / 416.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006793/0.2434, allocations: 331.9 kB / 417 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.2434, allocations: 4 kB / 417 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.2435, allocations: 8 kB / 417 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2435, allocations: 4 kB / 417 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007935/0.2443, allocations: 286 kB / 417.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.246, allocations: 1.15 MB / 418.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008289/0.2469, allocations: 250.6 kB / 418.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003307/0.2472, allocations: 108.8 kB / 418.7 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.2472, allocations: 0 / 418.7 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.2477, allocations: 185.8 kB / 418.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/0.2477, allocations: 0 / 418.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002311/0.25, allocations: 0.6625 MB / 419.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.2501, allocations: 114.8 kB / 419.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.2504, allocations: 278.6 kB / 420 MB, free: 7.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.2504, allocations: 33.7 kB / 420 MB, free: 7.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.2505, allocations: 191.6 kB / 420.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.2506, allocations: 51.38 kB / 420.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.633e-05/0.2507, allocations: 53.83 kB / 420.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.2508, allocations: 334.8 kB / 420.6 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.2511, allocations: 108.6 kB / 420.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.2515, allocations: 208.8 kB / 420.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000711/0.2523, allocations: 314.1 kB / 421.2 MB, free: 5.855 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2523, allocations: 0 / 421.2 MB, free: 5.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001224/0.2535, allocations: 471.6 kB / 421.7 MB, free: 5.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.2535, allocations: 32.2 kB / 421.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2536, allocations: 4 kB / 421.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003549/0.2539, allocations: 88.8 kB / 421.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.2541, allocations: 51.89 kB / 421.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.2567, allocations: 2.001 MB / 423.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.257, allocations: 43.81 kB / 423.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.257, allocations: 11.98 kB / 423.9 MB, free: 3.004 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.0001482/0.2572, allocations: 160.2 kB / 424.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/0.2572, allocations: 23.78 kB / 424.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/0.2573, allocations: 29.83 kB / 424.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2573, allocations: 0 / 424.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.2573, allocations: 4 kB / 424.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2573, allocations: 4.031 kB / 424.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.2576, allocations: 321.3 kB / 424.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2576, allocations: 0 / 424.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.2577, allocations: 27.97 kB / 424.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002685/0.258, allocations: 84.73 kB / 424.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.2581, allocations: 4 kB / 424.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.2602, allocations: 1.809 MB / 426.4 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2603, allocations: 0 / 426.4 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.2613, allocations: 373.5 kB / 426.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.654e-05/0.2614, allocations: 96.77 kB / 426.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.2614, allocations: 4 kB / 426.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.2617, allocations: 39.95 kB / 426.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/0.2618, allocations: 19.97 kB / 426.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.2618, allocations: 0 / 426.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.262, allocations: 209.9 kB / 427.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.262, allocations: 0 / 427.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.2624, allocations: 75.84 kB / 427.2 MB, free: 15.5 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.0001252/0.2625, allocations: 103.2 kB / 427.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009536/0.2634, allocations: 433.8 kB / 427.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2635, allocations: 0 / 427.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004653/0.2639, allocations: 238.5 kB / 427.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.2643, allocations: 56.34 kB / 428 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009861/0.2653, allocations: 0.5057 MB / 428.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.2655, allocations: 0.7558 MB / 429.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.81e-05/0.2656, allocations: 19.44 kB / 429.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2656, allocations: 0 / 429.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of Templates: time 0.006203/0.2718, allocations: 4.76 MB / 434 MB, free: 8.562 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