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.0009113/0.0009113, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.0009572/0.0009571, allocations: 175.3 kB / 18.21 MB, free: 5.68 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.275/1.275, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002261, allocations: 7.938 kB / 302.1 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07233/0.07257, allocations: 50.42 MB / 352.5 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005037/0.07763, allocations: 5.598 MB / 358.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.08009, allocations: 1.509 MB / 359.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004822/0.08058, allocations: 12 kB / 359.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.0809, allocations: 123 kB / 359.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006072/0.08151, allocations: 253.8 kB / 360 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006698/0.08219, allocations: 355.6 kB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.08328, allocations: 1.309 MB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004632/0.08375, allocations: 362.9 kB / 362 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003876/0.08415, allocations: 422.3 kB / 362.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004826/0.08464, allocations: 497.7 kB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.968e-05/0.08475, allocations: 56 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.08495, allocations: 95.97 kB / 363 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.0851, allocations: 191.1 kB / 363.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003987/0.08551, allocations: 0.5264 MB / 363.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008358/0.08635, allocations: 1.145 MB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.08636, allocations: 0 / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.08637, allocations: 4 kB / 364.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.08638, allocations: 0 / 364.9 MB, free: 7.008 MB / 302.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.002163/0.08855, allocations: 1.22 MB / 366.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.08859, allocations: 12.03 kB / 366.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.08876, allocations: 115.6 kB / 366.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.08938, allocations: 0.5421 MB / 366.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.08944, allocations: 66.38 kB / 366.8 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.08958, allocations: 88.38 kB / 366.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.09114, allocations: 0.8666 MB / 367.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.09117, allocations: 0 / 367.8 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.944e-05/0.09126, allocations: 39.98 kB / 367.8 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.09129, allocations: 31.88 kB / 367.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.09297, allocations: 0.8785 MB / 368.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1403/0.2332, allocations: 3.265 MB / 372 MB, free: 23.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.2346, allocations: 0.6793 MB / 372.7 MB, free: 23.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.2354, allocations: 438.6 kB / 373.1 MB, free: 23.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.676e-05/0.2355, allocations: 12.31 kB / 373.1 MB, free: 23.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.2355, allocations: 58.08 kB / 373.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.605e-06/0.2355, allocations: 0 / 373.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004631/0.2401, allocations: 2.325 MB / 375.5 MB, free: 22.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.2402, allocations: 60.66 kB / 375.6 MB, free: 22.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/0.2409, allocations: 0.608 MB / 376.2 MB, free: 22.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.344e-05/0.2409, allocations: 37.83 kB / 376.2 MB, free: 22.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.2411, allocations: 440.7 kB / 376.7 MB, free: 21.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.2413, allocations: 265 kB / 376.9 MB, free: 21.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2414, allocations: 72.58 kB / 377 MB, free: 21.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.2415, allocations: 392.4 kB / 377.4 MB, free: 21.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006592/0.2422, allocations: 337.8 kB / 377.7 MB, free: 21.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007275/0.2429, allocations: 484.8 kB / 378.2 MB, free: 20.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.2443, allocations: 0.8288 MB / 379 MB, free: 20.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2443, allocations: 1.062 kB / 379 MB, free: 20.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002123/0.2464, allocations: 1.134 MB / 380.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.2464, allocations: 6.828 kB / 380.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.2465, allocations: 3.375 kB / 380.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005362/0.247, allocations: 192.3 kB / 380.3 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008861/0.2479, allocations: 210.7 kB / 380.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/0.251, allocations: 2.634 MB / 383.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006559/0.2516, allocations: 46.33 kB / 383.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.2517, allocations: 33.08 kB / 383.2 MB, free: 17.74 MB / 302.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.0002851/0.252, allocations: 229.7 kB / 383.5 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.2521, allocations: 86.62 kB / 383.6 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.2523, allocations: 97.42 kB / 383.6 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2523, allocations: 11.08 kB / 383.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.2524, allocations: 3.812 kB / 383.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.2524, allocations: 3.469 kB / 383.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.2534, allocations: 0.8859 MB / 384.6 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.2534, allocations: 4.906 kB / 384.6 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000749/0.2541, allocations: 153.7 kB / 384.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005021/0.2547, allocations: 187.1 kB / 384.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.802e-05/0.2547, allocations: 18.48 kB / 384.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003008/0.2577, allocations: 2.658 MB / 387.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2578, allocations: 4.969 kB / 387.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.2603, allocations: 1.457 MB / 389 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.2604, allocations: 157.2 kB / 389.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2605, allocations: 17.14 kB / 389.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006514/0.2612, allocations: 65.39 kB / 389.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.2613, allocations: 56.67 kB / 389.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.453e-05/0.2614, allocations: 24.89 kB / 389.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004608/0.2618, allocations: 425.6 kB / 389.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2619, allocations: 1.25 kB / 389.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007754/0.2626, allocations: 242.8 kB / 390 MB, free: 13.76 MB / 302.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.0001844/0.2628, allocations: 136.3 kB / 390.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.2649, allocations: 1.064 MB / 391.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.2649, allocations: 0.8125 kB / 391.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.2662, allocations: 0.6624 MB / 391.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000739/0.2669, allocations: 132.2 kB / 392 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003232/0.2701, allocations: 2.56 MB / 394.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.2705, allocations: 0.9807 MB / 395.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.2708, allocations: 63.77 kB / 395.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2708, allocations: 0 / 395.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01534/0.2861, allocations: 14.81 MB / 410.4 MB, free: 13.75 MB / 318.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