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.001631/0.001631, allocations: 108 kB / 18.4 MB, free: 4.699 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.001892/0.001892, allocations: 186.3 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.411/1.411, 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.001427/0.001427, allocations: 51.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/0.09036, allocations: 46.6 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004496/0.0949, allocations: 3.184 MB / 379 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.09693, allocations: 1.01 MB / 380 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003759/0.09737, allocations: 4 kB / 380 MB, free: 364 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002986/0.09769, allocations: 63.36 kB / 380.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006343/0.09833, allocations: 123 kB / 380.2 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005397/0.09888, allocations: 147.6 kB / 380.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1939/0.2928, allocations: 490.7 kB / 380.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.2931, allocations: 137 kB / 381 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.2934, allocations: 184.8 kB / 381.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.2937, allocations: 210.6 kB / 381.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.601e-05/0.2938, allocations: 43 kB / 381.4 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.294, allocations: 76.22 kB / 381.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.665e-05/0.294, allocations: 90.02 kB / 381.5 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.2942, allocations: 220.2 kB / 381.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005785/0.2948, allocations: 0.4906 MB / 382.2 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2948, allocations: 2.031 kB / 382.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2948, allocations: 0 / 382.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.2948, allocations: 0 / 382.3 MB, free: 9.648 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.001313/0.2961, allocations: 0.7312 MB / 383 MB, free: 9.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2962, allocations: 9.188 kB / 383 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.2963, allocations: 48.39 kB / 383 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004398/0.2968, allocations: 308.9 kB / 383.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.2968, allocations: 28.03 kB / 383.4 MB, free: 8.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.12e-05/0.2969, allocations: 38.92 kB / 383.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006466/0.2975, allocations: 348 kB / 383.7 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2976, allocations: 3.938 kB / 383.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.2976, allocations: 13.75 kB / 383.8 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.2976, allocations: 9.25 kB / 383.8 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004822/0.2981, allocations: 236.4 kB / 384 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.2999, allocations: 1.171 MB / 385.2 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/0.3006, allocations: 283.5 kB / 385.5 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000481/0.3011, allocations: 210 kB / 385.7 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005237/0.3016, allocations: 1.113 MB / 386.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.3016, allocations: 37.77 kB / 386.8 MB, free: 6.871 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.903e-06/0.3016, allocations: 4 kB / 386.8 MB, free: 6.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.001301/0.3029, allocations: 0.5285 MB / 387.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.303, allocations: 80.47 kB / 387.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003386/0.3033, allocations: 341 kB / 387.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.3034, allocations: 35.39 kB / 387.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.3035, allocations: 213.5 kB / 388 MB, free: 6.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.026e-05/0.3035, allocations: 99.58 kB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3036, allocations: 69.86 kB / 388.2 MB, free: 5.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.37e-05/0.3037, allocations: 355.6 kB / 388.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.3039, allocations: 100.8 kB / 388.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.3042, allocations: 189.2 kB / 388.8 MB, free: 5.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.3047, allocations: 288.4 kB / 389.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3047, allocations: 0.9688 kB / 389.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007486/0.3054, allocations: 440.5 kB / 389.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3055, allocations: 5.906 kB / 389.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.3055, allocations: 2.375 kB / 389.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.3057, allocations: 64.8 kB / 389.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.3061, allocations: 77.44 kB / 389.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.3076, allocations: 1.96 MB / 391.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.3079, allocations: 39.02 kB / 391.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.3079, allocations: 14.97 kB / 391.7 MB, free: 3.352 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.0001435/0.3081, allocations: 158.3 kB / 391.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.3081, allocations: 38.58 kB / 391.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006925/0.3088, allocations: 332.7 kB / 392.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3089, allocations: 3.156 kB / 392.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3089, allocations: 5.562 kB / 392.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3089, allocations: 5.391 kB / 392.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.3093, allocations: 398.8 kB / 392.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3093, allocations: 0.7031 kB / 392.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.3097, allocations: 54.52 kB / 392.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.3099, allocations: 58.66 kB / 392.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.3099, allocations: 8.172 kB / 392.7 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002876/0.3102, allocations: 0.6103 MB / 393.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3102, allocations: 1.031 kB / 393.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008566/0.3111, allocations: 0.5201 MB / 393.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.3112, allocations: 132.9 kB / 394 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.234e-05/0.3112, allocations: 5.906 kB / 394 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.3115, allocations: 21.28 kB / 394 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.3116, allocations: 14.19 kB / 394 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.3116, allocations: 13.02 kB / 394 MB, free: 1.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002226/0.3118, allocations: 238.2 kB / 394.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3118, allocations: 0 / 394.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000474/0.3123, allocations: 119.7 kB / 394.4 MB, free: 1.578 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.000177/0.3125, allocations: 123.9 kB / 394.5 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.3133, allocations: 417.1 kB / 394.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3133, allocations: 1.188 kB / 394.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003357/0.3137, allocations: 143.3 kB / 395 MB, free: 1.242 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.314, allocations: 44.58 kB / 395.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.3153, allocations: 0.8924 MB / 396 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.3156, allocations: 0.7952 MB / 396.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.269e-05/0.3157, allocations: 37.7 kB / 396.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3157, allocations: 0 / 396.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of Templates: time 0.0084/0.3241, allocations: 5.486 MB / 402.3 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