Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 108.3 kB / 18.4 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 180.2 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001323, allocations: 52.3 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.0908, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004743/0.0956, allocations: 3.187 MB / 379 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.098, allocations: 1.006 MB / 380 MB, free: 372 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004245/0.09849, allocations: 4 kB / 380 MB, free: 368 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.09878, allocations: 63.34 kB / 380.1 MB, free: 304 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006193/0.09941, allocations: 119 kB / 380.2 MB, free: 184 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.09989, allocations: 159.6 kB / 380.4 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1788/0.2787, allocations: 480.3 kB / 380.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003454/0.2791, allocations: 138.5 kB / 381 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004653/0.2796, allocations: 180.5 kB / 381.1 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003941/0.28, allocations: 214.1 kB / 381.3 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.2801, allocations: 39.41 kB / 381.4 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.2804, allocations: 75.28 kB / 381.5 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.2804, allocations: 94.03 kB / 381.5 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002713/0.2807, allocations: 213.2 kB / 381.8 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007114/0.2814, allocations: 0.4954 MB / 382.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.2815, allocations: 0.625 kB / 382.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2815, allocations: 2.938 kB / 382.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.2815, allocations: 0.75 kB / 382.3 MB, free: 9.562 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001583/0.2831, allocations: 0.7335 MB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.2831, allocations: 9.938 kB / 383 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.2833, allocations: 47.78 kB / 383 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.2837, allocations: 305.1 kB / 383.3 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.2838, allocations: 27.12 kB / 383.4 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.2839, allocations: 37.22 kB / 383.4 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.2845, allocations: 349.9 kB / 383.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2846, allocations: 3.938 kB / 383.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.2846, allocations: 15.69 kB / 383.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2846, allocations: 10.48 kB / 383.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004886/0.2851, allocations: 232.3 kB / 384 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.287, allocations: 1.169 MB / 385.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/0.2876, allocations: 279.8 kB / 385.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004833/0.2881, allocations: 219 kB / 385.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005004/0.2886, allocations: 1.116 MB / 386.8 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.2886, allocations: 37.7 kB / 386.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.874e-06/0.2886, allocations: 0 / 386.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.001283/0.2899, allocations: 0.5259 MB / 387.3 MB, free: 6.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.29, allocations: 82.03 kB / 387.4 MB, free: 6.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.2903, allocations: 339.4 kB / 387.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.2904, allocations: 31.89 kB / 387.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.2905, allocations: 215 kB / 388 MB, free: 6.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.23e-05/0.2905, allocations: 101.1 kB / 388.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.2907, allocations: 74.98 kB / 388.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.231e-05/0.2907, allocations: 351.8 kB / 388.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002159/0.291, allocations: 102 kB / 388.6 MB, free: 5.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.2912, allocations: 185.7 kB / 388.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.2917, allocations: 291.1 kB / 389.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2917, allocations: 1.062 kB / 389.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007509/0.2925, allocations: 436.1 kB / 389.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2925, allocations: 4.938 kB / 389.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2925, allocations: 2.438 kB / 389.5 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.2928, allocations: 69.03 kB / 389.6 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.2931, allocations: 81.11 kB / 389.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.2946, allocations: 1.963 MB / 391.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.2949, allocations: 39.55 kB / 391.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.2949, allocations: 19.05 kB / 391.7 MB, free: 3.273 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001468/0.2951, allocations: 149.1 kB / 391.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.2951, allocations: 37.41 kB / 391.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000675/0.2958, allocations: 339.2 kB / 392.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2958, allocations: 3.656 kB / 392.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.2958, allocations: 4.562 kB / 392.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2958, allocations: 5.016 kB / 392.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004556/0.2963, allocations: 393.9 kB / 392.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2963, allocations: 1.062 kB / 392.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.2966, allocations: 52.69 kB / 392.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001926/0.2968, allocations: 59.41 kB / 392.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.2969, allocations: 11.59 kB / 392.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002933/0.2972, allocations: 0.6072 MB / 393.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2972, allocations: 0 / 393.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008425/0.298, allocations: 0.5213 MB / 393.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.2982, allocations: 131.2 kB / 394 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.194e-05/0.2982, allocations: 6.719 kB / 394 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.2985, allocations: 23.5 kB / 394 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.2985, allocations: 13.86 kB / 394 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.2986, allocations: 11.69 kB / 394 MB, free: 1.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002322/0.2988, allocations: 241.3 kB / 394.3 MB, free: 1.531 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2988, allocations: 0 / 394.3 MB, free: 1.531 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.2993, allocations: 116 kB / 394.4 MB, free: 1.504 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001981/0.2995, allocations: 127.1 kB / 394.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007913/0.3003, allocations: 416.7 kB / 394.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3003, allocations: 1.188 kB / 394.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003339/0.3007, allocations: 143.9 kB / 395 MB, free: 1.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.3011, allocations: 43.83 kB / 395.1 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.3023, allocations: 0.889 MB / 396 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.3026, allocations: 0.7967 MB / 396.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.754e-05/0.3027, allocations: 33.61 kB / 396.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3027, allocations: 0 / 396.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of Templates: time 0.01019/0.3129, allocations: 5.441 MB / 402.2 MB, free: 14.62 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x,time