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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002157/0.002157, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 103.2 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008305/0.0008305, allocations: 35.95 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2994, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004572/0.3041, allocations: 6.046 MB / 405.5 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.3064, allocations: 1.519 MB / 407 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003554/0.3068, allocations: 16 kB / 407.1 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.3071, allocations: 127 kB / 407.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004087/0.3075, allocations: 253.8 kB / 407.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005722/0.3081, allocations: 359.6 kB / 407.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007703/0.3089, allocations: 1.321 MB / 409.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.3092, allocations: 374.9 kB / 409.5 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/0.3095, allocations: 438.3 kB / 409.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.3099, allocations: 0.5173 MB / 410.4 MB, free: 22.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.831e-05/0.31, allocations: 72 kB / 410.5 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001925/0.3102, allocations: 108 kB / 410.6 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3103, allocations: 215.1 kB / 410.8 MB, free: 22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.3106, allocations: 0.5247 MB / 411.3 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007734/0.3114, allocations: 1.461 MB / 412.8 MB, free: 20.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3114, allocations: 4 kB / 412.8 MB, free: 20.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.3114, allocations: 0 / 412.8 MB, free: 20.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3115, allocations: 0 / 412.8 MB, free: 20.01 MB / 298.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.002075/0.3135, allocations: 1.372 MB / 414.2 MB, free: 18.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.3136, allocations: 8.031 kB / 414.2 MB, free: 18.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.3137, allocations: 127.5 kB / 414.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004883/0.3142, allocations: 0.5344 MB / 414.8 MB, free: 17.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.3143, allocations: 70.38 kB / 414.9 MB, free: 17.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3144, allocations: 88.36 kB / 415 MB, free: 17.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.3155, allocations: 0.851 MB / 415.8 MB, free: 16.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.3156, allocations: 0 / 415.8 MB, free: 16.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.826e-05/0.3156, allocations: 39.98 kB / 415.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.3157, allocations: 23.94 kB / 415.9 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.317, allocations: 0.8551 MB / 416.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004119/0.3211, allocations: 3.245 MB / 420 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008712/0.322, allocations: 0.6655 MB / 420.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005446/0.3225, allocations: 431.1 kB / 421.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.484e-05/0.3226, allocations: 12.55 kB / 421.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.3226, allocations: 51.06 kB / 421.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 2.424e-06/0.3226, allocations: 0 / 421.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.003539/0.3262, allocations: 2.252 MB / 423.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.3262, allocations: 60 kB / 423.4 MB, free: 9.023 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.3267, allocations: 0.6057 MB / 424.1 MB, free: 8.414 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.3268, allocations: 41.7 kB / 424.1 MB, free: 8.367 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.3269, allocations: 451.1 kB / 424.5 MB, free: 7.918 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.3271, allocations: 264.2 kB / 424.8 MB, free: 7.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002224/0.3273, allocations: 146.6 kB / 424.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.519e-05/0.3274, allocations: 386.8 kB / 425.3 MB, free: 7.121 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005206/0.3279, allocations: 321.9 kB / 425.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00056/0.3285, allocations: 472.6 kB / 426.1 MB, free: 6.293 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.3295, allocations: 0.8085 MB / 426.9 MB, free: 5.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3296, allocations: 4 kB / 426.9 MB, free: 5.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00168/0.3312, allocations: 1.114 MB / 428 MB, free: 4.309 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3313, allocations: 8.062 kB / 428 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3313, allocations: 4 kB / 428 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004709/0.3318, allocations: 183.4 kB / 428.2 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000751/0.3325, allocations: 207.7 kB / 428.4 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.3352, allocations: 2.628 MB / 431 MB, free: 1.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006523/0.3359, allocations: 32.03 kB / 431.1 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.336, allocations: 32 kB / 431.1 MB, free: 1.086 MB / 298.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 () * 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.000294/0.3363, allocations: 237.6 kB / 431.3 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.3364, allocations: 79.19 kB / 431.4 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001683/0.3366, allocations: 91.27 kB / 431.5 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3366, allocations: 15.94 kB / 431.5 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.3366, allocations: 4 kB / 431.5 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3366, allocations: 3.984 kB / 431.5 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008393/0.3374, allocations: 0.8768 MB / 432.4 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3375, allocations: 0 / 432.4 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006927/0.3382, allocations: 155.8 kB / 432.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005064/0.3387, allocations: 187.4 kB / 432.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-05/0.3387, allocations: 23.98 kB / 432.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003701/0.3425, allocations: 2.635 MB / 435.4 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3425, allocations: 0 / 435.4 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03538/0.3779, allocations: 14.32 MB / 449.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.378, allocations: 152.2 kB / 449.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3782, allocations: 23.88 kB / 449.9 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006013/0.3788, allocations: 51.95 kB / 449.9 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.3789, allocations: 52.58 kB / 450 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-05/0.379, allocations: 23.98 kB / 450 MB, free: 13.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004899/0.3795, allocations: 427.1 kB / 450.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3795, allocations: 0 / 450.4 MB, free: 13.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001189/0.3807, allocations: 368 kB / 450.8 MB, free: 12.89 MB / 330.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 () * 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.0002565/0.3809, allocations: 135.2 kB / 450.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.3831, allocations: 1.033 MB / 452 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3831, allocations: 4 kB / 452 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001261/0.3844, allocations: 0.6434 MB / 452.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008437/0.3852, allocations: 140 kB / 452.7 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00498/0.3902, allocations: 3.122 MB / 455.9 MB, free: 7.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000626/0.3909, allocations: 1.009 MB / 456.9 MB, free: 6.691 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007521/0.3916, allocations: 105.5 kB / 457 MB, free: 6.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003316/0.392, allocations: 67.39 kB / 457 MB, free: 6.52 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.392, allocations: 0 / 457 MB, free: 6.52 MB / 330.7 MB Notification: Performance of Templates: time 0.02919/0.4212, allocations: 16.84 MB / 473.9 MB, free: 5.789 MB / 346.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@2/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