Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001092, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001109/0.001109, allocations: 187.1 kB / 18.67 MB, free: 4.441 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.288/1.288, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 51.91 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2547, allocations: 49.43 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006592/0.2613, allocations: 6.064 MB / 407.5 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00299/0.2643, allocations: 1.525 MB / 409 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005519/0.2649, allocations: 19.94 kB / 409 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003836/0.2653, allocations: 170.3 kB / 409.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005568/0.2659, allocations: 285.2 kB / 409.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007792/0.2667, allocations: 411.4 kB / 409.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.2679, allocations: 1.391 MB / 411.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005257/0.2684, allocations: 429.2 kB / 411.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005926/0.269, allocations: 0.4945 MB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006088/0.2697, allocations: 0.5681 MB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.2698, allocations: 136 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002662/0.2701, allocations: 168 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.2703, allocations: 271.1 kB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004596/0.2708, allocations: 0.5911 MB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.272, allocations: 1.531 MB / 415.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.272, allocations: 4 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.272, allocations: 0 / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.272, allocations: 0 / 415.4 MB, free: 10.93 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.00238/0.2744, allocations: 1.368 MB / 416.8 MB, free: 9.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.2744, allocations: 8.031 kB / 416.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.2746, allocations: 115.6 kB / 416.9 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000684/0.2753, allocations: 0.5693 MB / 417.5 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.54e-05/0.2754, allocations: 66.38 kB / 417.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.2755, allocations: 84.38 kB / 417.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.2769, allocations: 0.8549 MB / 418.5 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.277, allocations: 4 kB / 418.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.004e-05/0.277, allocations: 36 kB / 418.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/0.2771, allocations: 24 kB / 418.6 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.2786, allocations: 0.8511 MB / 419.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004916/0.2835, allocations: 3.222 MB / 422.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.2846, allocations: 0.6723 MB / 423.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006489/0.2852, allocations: 431.1 kB / 423.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.2853, allocations: 12.55 kB / 423.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.2853, allocations: 39.12 kB / 423.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.355e-06/0.2853, allocations: 0 / 423.8 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004156/0.2895, allocations: 2.275 MB / 426 MB, free: 16 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.789e-05/0.2896, allocations: 56.06 kB / 426.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006281/0.2902, allocations: 0.6057 MB / 426.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.426e-05/0.2903, allocations: 41.7 kB / 426.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.2905, allocations: 439.2 kB / 427.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.2907, allocations: 268.1 kB / 427.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.2909, allocations: 146.6 kB / 427.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2911, allocations: 390.8 kB / 428 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005934/0.2917, allocations: 325.8 kB / 428.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006929/0.2924, allocations: 472.6 kB / 428.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.2936, allocations: 0.7969 MB / 429.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.2936, allocations: 0 / 429.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001959/0.2956, allocations: 1.118 MB / 430.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2956, allocations: 8 kB / 430.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.2957, allocations: 4 kB / 430.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005257/0.2962, allocations: 192.7 kB / 430.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008106/0.297, allocations: 195.7 kB / 431 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003421/0.3004, allocations: 2.897 MB / 433.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006369/0.3011, allocations: 39.91 kB / 434 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.416e-05/0.3012, allocations: 35.98 kB / 434 MB, free: 7.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * 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 {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003551/0.3015, allocations: 233.7 kB / 434.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.3017, allocations: 83 kB / 434.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.3019, allocations: 87.27 kB / 434.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3019, allocations: 8 kB / 434.4 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.3019, allocations: 4 kB / 434.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.3019, allocations: 3.984 kB / 434.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.303, allocations: 0.8924 MB / 435.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.303, allocations: 3.938 kB / 435.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000698/0.3037, allocations: 151.8 kB / 435.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004732/0.3042, allocations: 179.8 kB / 435.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.749e-05/0.3043, allocations: 23.98 kB / 435.7 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/0.3077, allocations: 2.881 MB / 438.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3077, allocations: 0 / 438.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.3101, allocations: 1.431 MB / 440 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.3103, allocations: 148.2 kB / 440.1 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.3104, allocations: 12 kB / 440.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006062/0.3111, allocations: 59.95 kB / 440.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.3112, allocations: 48.58 kB / 440.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/0.3112, allocations: 24.23 kB / 440.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004838/0.3117, allocations: 427.1 kB / 440.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3117, allocations: 0 / 440.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008963/0.3126, allocations: 244 kB / 440.9 MB, free: 0.5938 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * 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 {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003338/0.313, allocations: 135.2 kB / 441.1 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002413/0.3154, allocations: 1.048 MB / 442.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3154, allocations: 0 / 442.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.3167, allocations: 0.6474 MB / 442.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.3174, allocations: 157.7 kB / 442.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.3206, allocations: 2.021 MB / 444.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005603/0.3212, allocations: 0.9814 MB / 445.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.3214, allocations: 67.41 kB / 446 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3215, allocations: 4 kB / 446 MB, free: 11.45 MB / 366.1 MB Notification: Performance of Templates: time 0.01876/0.3402, allocations: 14.92 MB / 460.9 MB, free: 12.57 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches