Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009182/0.0009183, allocations: 96.58 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 207.7 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002591, allocations: 8 kB / 308.4 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1021, allocations: 51.52 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005841/0.108, allocations: 5.616 MB / 365.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.1115, allocations: 1.537 MB / 367.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009945/0.1125, allocations: 16 kB / 367.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005383/0.1131, allocations: 123 kB / 367.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.1142, allocations: 249.9 kB / 367.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1152, allocations: 367.6 kB / 367.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001758/0.117, allocations: 1.309 MB / 369.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006485/0.1177, allocations: 366.9 kB / 369.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000856/0.1185, allocations: 410.4 kB / 369.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007957/0.1193, allocations: 0.4937 MB / 370.4 MB, free: 2.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002123/0.1196, allocations: 67.94 kB / 370.4 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003891/0.12, allocations: 99.95 kB / 370.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.1202, allocations: 195.2 kB / 370.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006328/0.1208, allocations: 0.5225 MB / 371.2 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.1219, allocations: 1.149 MB / 372.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1219, allocations: 4 kB / 372.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.789e-06/0.1219, allocations: 0 / 372.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.938e-05/0.122, allocations: 3.938 kB / 372.4 MB, free: 0.75 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.1838/0.3058, allocations: 1.211 MB / 373.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.3059, allocations: 10.47 kB / 373.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000721/0.3066, allocations: 130.2 kB / 373.7 MB, free: 19.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.3078, allocations: 0.5406 MB / 374.3 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.3079, allocations: 67.31 kB / 374.3 MB, free: 18.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.3082, allocations: 91.36 kB / 374.4 MB, free: 18.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.3103, allocations: 0.8714 MB / 375.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.3103, allocations: 0.6094 kB / 375.3 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-05/0.3104, allocations: 40.12 kB / 375.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.691e-05/0.3105, allocations: 21.62 kB / 375.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.3123, allocations: 0.8795 MB / 376.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005804/0.3182, allocations: 3.274 MB / 379.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.3193, allocations: 0.6812 MB / 380.2 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007436/0.3201, allocations: 447 kB / 380.6 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.374e-05/0.3202, allocations: 14.67 kB / 380.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.3202, allocations: 43.67 kB / 380.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.476e-06/0.3202, allocations: 1.062 kB / 380.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004886/0.3251, allocations: 2.327 MB / 383 MB, free: 14.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.3252, allocations: 60.28 kB / 383.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009293/0.3261, allocations: 0.6088 MB / 383.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.501e-05/0.3262, allocations: 41.84 kB / 383.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.3264, allocations: 438.3 kB / 384.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.3266, allocations: 262.5 kB / 384.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.3267, allocations: 71.7 kB / 384.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3269, allocations: 389.2 kB / 384.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006732/0.3275, allocations: 338 kB / 385.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007386/0.3283, allocations: 486.6 kB / 385.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.3297, allocations: 0.8302 MB / 386.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.3297, allocations: 2.219 kB / 386.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00229/0.332, allocations: 1.136 MB / 387.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.332, allocations: 7.969 kB / 387.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.332, allocations: 7.469 kB / 387.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005874/0.3326, allocations: 188.2 kB / 387.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009406/0.3336, allocations: 207.4 kB / 388 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/0.3369, allocations: 2.638 MB / 390.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008038/0.3378, allocations: 42.48 kB / 390.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.3379, allocations: 38.05 kB / 390.8 MB, free: 10.06 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.0004189/0.3383, allocations: 234.5 kB / 391 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.3385, allocations: 79.47 kB / 391.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002165/0.3387, allocations: 98.72 kB / 391.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3387, allocations: 8.25 kB / 391.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.403e-05/0.3388, allocations: 8.75 kB / 391.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3388, allocations: 5.625 kB / 391.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.3401, allocations: 0.8812 MB / 392.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.3401, allocations: 1.469 kB / 392.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000728/0.3409, allocations: 151.3 kB / 392.2 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005333/0.3414, allocations: 182.3 kB / 392.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.979e-05/0.3415, allocations: 22.95 kB / 392.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003105/0.3446, allocations: 2.658 MB / 395.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3446, allocations: 0 / 395.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.3474, allocations: 1.471 MB / 396.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/0.3477, allocations: 146.5 kB / 396.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.3479, allocations: 16.78 kB / 396.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006894/0.3486, allocations: 63.55 kB / 396.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.3487, allocations: 54.03 kB / 396.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.74e-05/0.3488, allocations: 28.58 kB / 396.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006018/0.3494, allocations: 427.7 kB / 397.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3494, allocations: 1.469 kB / 397.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001071/0.3505, allocations: 245.4 kB / 397.5 MB, free: 5.777 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.0002575/0.3508, allocations: 136 kB / 397.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.3529, allocations: 1.069 MB / 398.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3529, allocations: 0.8125 kB / 398.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.3542, allocations: 0.6578 MB / 399.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008868/0.3551, allocations: 138.4 kB / 399.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.3583, allocations: 2.556 MB / 402.1 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000367/0.3587, allocations: 0.9814 MB / 403 MB, free: 1.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.359, allocations: 67.41 kB / 403.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.359, allocations: 0 / 403.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of Templates: time 0.02132/0.3803, allocations: 14.81 MB / 417.9 MB, free: 2.77 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.000000 File[5057]=0.000000 " Variables in the reference: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 Variables in the result:C1.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v,time