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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000952/0.000952, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.166/1.166, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009994/0.0009994, allocations: 103.5 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.061e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2004, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08614/0.2866, allocations: 82.24 MB / 469.2 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.2868, allocations: 75.89 kB / 469.2 MB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04115/0.328, allocations: 15.53 MB / 484.8 MB, free: 4.953 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.328, allocations: 20 kB / 484.8 MB, free: 4.934 MB / 362.7 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.00214/0.3302, allocations: 1.149 MB / 485.9 MB, free: 3.738 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3302, allocations: 8.031 kB / 485.9 MB, free: 3.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.3304, allocations: 118.6 kB / 486 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000803/0.3312, allocations: 0.5472 MB / 486.6 MB, free: 3.023 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.3313, allocations: 28 kB / 486.6 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3314, allocations: 63.89 kB / 486.7 MB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00128/0.3327, allocations: 0.7311 MB / 487.4 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.3339, allocations: 0.6751 MB / 488.1 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.3339, allocations: 0 / 488.1 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.826e-05/0.334, allocations: 0 / 488.1 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.334, allocations: 24 kB / 488.1 MB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005241/0.3393, allocations: 3.156 MB / 491.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.3399, allocations: 385 kB / 491.6 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005066/0.3404, allocations: 377.1 kB / 492 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.472e-05/0.3405, allocations: 12.66 kB / 492 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.3405, allocations: 43.16 kB / 492.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.114e-06/0.3405, allocations: 0 / 492.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.006609/0.3472, allocations: 2.463 MB / 494.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.3472, allocations: 60.06 kB / 494.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005443/0.3478, allocations: 450.3 kB / 495 MB, free: 10.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/0.3478, allocations: 25.7 kB / 495.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.348, allocations: 363.1 kB / 495.4 MB, free: 9.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.3482, allocations: 252.2 kB / 495.7 MB, free: 9.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.3482, allocations: 0 / 495.7 MB, free: 9.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3484, allocations: 387.4 kB / 496 MB, free: 9.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/0.3488, allocations: 270 kB / 496.3 MB, free: 9.082 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005653/0.3494, allocations: 406.5 kB / 496.7 MB, free: 8.637 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.3512, allocations: 0.5821 MB / 497.3 MB, free: 8.055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.3513, allocations: 3.938 kB / 497.3 MB, free: 8.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003019/0.3543, allocations: 1.217 MB / 498.5 MB, free: 6.824 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.3543, allocations: 4 kB / 498.5 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3543, allocations: 5.125 kB / 498.5 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005771/0.3549, allocations: 187.9 kB / 498.7 MB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009453/0.3559, allocations: 207.7 kB / 498.9 MB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003411/0.3593, allocations: 2.46 MB / 0.4896 GB, free: 3.859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007016/0.36, allocations: 24.05 kB / 0.4896 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.3601, allocations: 39.98 kB / 0.4897 GB, free: 3.797 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.3603, allocations: 120.7 kB / 0.4898 GB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.3604, allocations: 75.16 kB / 0.4898 GB, free: 3.598 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001979/0.3606, allocations: 81.41 kB / 0.4899 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3607, allocations: 11.91 kB / 0.4899 GB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.3607, allocations: 4 kB / 0.4899 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.3607, allocations: 3.984 kB / 0.4899 GB, free: 3.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.3617, allocations: 0.765 MB / 0.4907 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3617, allocations: 7.984 kB / 0.4907 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008025/0.3625, allocations: 155.8 kB / 0.4908 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005578/0.3631, allocations: 183.6 kB / 0.491 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-05/0.3632, allocations: 11.98 kB / 0.491 GB, free: 2.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1502/0.5134, allocations: 2.479 MB / 0.4935 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5134, allocations: 3.625 kB / 0.4935 GB, free: 73.95 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003024/0.5164, allocations: 1.507 MB / 0.4949 GB, free: 73.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.5166, allocations: 144.1 kB / 0.4951 GB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.5167, allocations: 7.781 kB / 0.4951 GB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00065/0.5174, allocations: 58.41 kB / 0.4951 GB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.524e-05/0.5175, allocations: 40.08 kB / 0.4952 GB, free: 73.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.5175, allocations: 28.31 kB / 0.4952 GB, free: 73.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003179/0.5179, allocations: 341 kB / 0.4955 GB, free: 73.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007013/0.5186, allocations: 216.1 kB / 0.4957 GB, free: 73.62 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002213/0.5188, allocations: 131.4 kB / 0.4959 GB, free: 73.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.5202, allocations: 0.8611 MB / 0.4967 GB, free: 73.42 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5203, allocations: 5.688 kB / 0.4967 GB, free: 73.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009675/0.5212, allocations: 0.5351 MB / 0.4972 GB, free: 73.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004785/0.5217, allocations: 91.72 kB / 0.4973 GB, free: 73.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002552/0.5243, allocations: 1.641 MB / 0.4989 GB, free: 72.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005324/0.5248, allocations: 1.075 MB / 0.5 GB, free: 72.13 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5248, allocations: 0 / 0.5 GB, free: 72.13 MB / 378.7 MB Notification: Performance of Templates: time 0.01565/0.5405, allocations: 10.77 MB / 0.5105 GB, free: 71.58 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches