Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001612/0.001612, allocations: 112.3 kB / 17.74 MB, free: 5.336 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.001949/0.001949, allocations: 187 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 47.94 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2794, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.00428/0.2837, allocations: 3.227 MB / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.2853, allocations: 0.9584 MB / 405.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.2855, allocations: 4 kB / 405.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.2857, allocations: 67.41 kB / 405.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.286, allocations: 118.9 kB / 405.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000314/0.2864, allocations: 151.7 kB / 405.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/0.2868, allocations: 485.9 kB / 406.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.2871, allocations: 135.1 kB / 406.5 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.2873, allocations: 179.4 kB / 406.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.2876, allocations: 207.1 kB / 406.9 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.2876, allocations: 40 kB / 407 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.2878, allocations: 75.97 kB / 407 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.462e-05/0.2879, allocations: 103.6 kB / 407.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.2881, allocations: 210.9 kB / 407.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.2886, allocations: 0.4955 MB / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2886, allocations: 0 / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2886, allocations: 0 / 407.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.2886, allocations: 0 / 407.8 MB, free: 2.441 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.001344/0.29, allocations: 0.7325 MB / 408.6 MB, free: 1.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.29, allocations: 12.03 kB / 408.6 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.418e-05/0.2901, allocations: 48.38 kB / 408.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.2905, allocations: 311.4 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.2906, allocations: 25.03 kB / 409 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.801e-05/0.2906, allocations: 36.28 kB / 409 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00064/0.2913, allocations: 349.3 kB / 409.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.2913, allocations: 0 / 409.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.2914, allocations: 19.94 kB / 409.3 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2914, allocations: 12 kB / 409.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004631/0.2918, allocations: 234.5 kB / 409.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.2937, allocations: 1.162 MB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006524/0.2944, allocations: 279.6 kB / 411 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005087/0.2949, allocations: 217.1 kB / 411.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007898/0.2957, allocations: 1.117 MB / 412.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.2957, allocations: 34.8 kB / 412.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.194e-06/0.2957, allocations: 4 kB / 412.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001387/0.2971, allocations: 0.5295 MB / 412.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.2972, allocations: 81.11 kB / 413 MB, free: 12.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.2976, allocations: 332.5 kB / 413.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.2976, allocations: 33.7 kB / 413.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.2978, allocations: 212.1 kB / 413.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.057e-05/0.2978, allocations: 98.55 kB / 413.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.298, allocations: 66.06 kB / 413.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2981, allocations: 350.7 kB / 414.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.2983, allocations: 108.7 kB / 414.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002666/0.2986, allocations: 185.7 kB / 414.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005158/0.2991, allocations: 296.3 kB / 414.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2991, allocations: 0 / 414.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00078/0.2999, allocations: 429.6 kB / 415.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3, allocations: 8 kB / 415.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.3, allocations: 4 kB / 415.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002624/0.3002, allocations: 72.69 kB / 415.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003238/0.3006, allocations: 75.89 kB / 415.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.3024, allocations: 1.962 MB / 417.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.3027, allocations: 39.59 kB / 417.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.65e-05/0.3028, allocations: 19.98 kB / 417.2 MB, free: 8.273 MB / 334.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.0001911/0.303, allocations: 151.3 kB / 417.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.303, allocations: 35.62 kB / 417.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006884/0.3037, allocations: 330.2 kB / 417.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3037, allocations: 4 kB / 417.8 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.3038, allocations: 3.938 kB / 417.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3038, allocations: 0 / 417.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004428/0.3042, allocations: 393.2 kB / 418.1 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3042, allocations: 4 kB / 418.1 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.3046, allocations: 63.89 kB / 418.2 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001791/0.3047, allocations: 48.83 kB / 418.3 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.3048, allocations: 11.98 kB / 418.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004091/0.3052, allocations: 0.6187 MB / 418.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3052, allocations: 3.938 kB / 418.9 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008837/0.3061, allocations: 0.5092 MB / 419.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.06e-05/0.3062, allocations: 112.7 kB / 419.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.3063, allocations: 8 kB / 419.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002592/0.3065, allocations: 23.97 kB / 419.5 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.3066, allocations: 15.92 kB / 419.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.3066, allocations: 8.188 kB / 419.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002476/0.3069, allocations: 235 kB / 419.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3069, allocations: 3.938 kB / 419.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004621/0.3073, allocations: 115.8 kB / 419.9 MB, free: 5.473 MB / 334.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.0002203/0.3076, allocations: 131.2 kB / 420 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008425/0.3084, allocations: 426.7 kB / 420.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3084, allocations: 4.125 kB / 420.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003472/0.3088, allocations: 151.8 kB / 420.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.3091, allocations: 33.42 kB / 420.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3105, allocations: 0.9065 MB / 421.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.3109, allocations: 0.7834 MB / 422.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.85e-05/0.311, allocations: 35.42 kB / 422.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.311, allocations: 4 kB / 422.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of Templates: time 0.008273/0.3193, allocations: 5.47 MB / 427.8 MB, free: 13.46 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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