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.001293/0.001293, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.001139/0.001139, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.379/1.379, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 51.23 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09093/0.09211, allocations: 49.44 MB / 350.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006463/0.09861, allocations: 6.062 MB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.1013, allocations: 1.521 MB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004186/0.1017, allocations: 16 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000368/0.1021, allocations: 178.2 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005475/0.1027, allocations: 289.3 kB / 358.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.1035, allocations: 415.3 kB / 359.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.1046, allocations: 1.383 MB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005253/0.1051, allocations: 433.2 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004926/0.1056, allocations: 498.4 kB / 361.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005547/0.1062, allocations: 0.5719 MB / 362 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001596/0.1064, allocations: 132 kB / 362.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.1066, allocations: 172 kB / 362.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.1068, allocations: 275.2 kB / 362.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004762/0.1073, allocations: 0.5871 MB / 363.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.1085, allocations: 1.515 MB / 364.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1085, allocations: 0 / 364.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1085, allocations: 0 / 364.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.1085, allocations: 4 kB / 364.7 MB, free: 6.363 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.002515/0.1111, allocations: 1.386 MB / 366.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.1111, allocations: 8.031 kB / 366.1 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.1113, allocations: 115.6 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006317/0.112, allocations: 0.5422 MB / 366.8 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.413e-05/0.112, allocations: 66.38 kB / 366.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.1121, allocations: 88.28 kB / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.1136, allocations: 0.8665 MB / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.1136, allocations: 0 / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.47e-05/0.1137, allocations: 36 kB / 367.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.1138, allocations: 20 kB / 367.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.1153, allocations: 0.8589 MB / 368.7 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1788/0.2941, allocations: 3.219 MB / 371.9 MB, free: 24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.2954, allocations: 0.6699 MB / 372.6 MB, free: 23.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007651/0.2962, allocations: 429.6 kB / 373 MB, free: 23.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.96e-05/0.2962, allocations: 11.97 kB / 373 MB, free: 23.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.2963, allocations: 44.84 kB / 373.1 MB, free: 23.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 3.687e-06/0.2963, allocations: 4.109 kB / 373.1 MB, free: 23.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004913/0.3012, allocations: 2.264 MB / 375.3 MB, free: 22.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3013, allocations: 58.41 kB / 375.4 MB, free: 22.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008957/0.3022, allocations: 0.6061 MB / 376 MB, free: 22.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.76e-05/0.3023, allocations: 41.73 kB / 376 MB, free: 22.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002715/0.3026, allocations: 438.7 kB / 376.5 MB, free: 22.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.3027, allocations: 260 kB / 376.7 MB, free: 21.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.303, allocations: 155.1 kB / 376.9 MB, free: 21.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3032, allocations: 384.4 kB / 377.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006948/0.3039, allocations: 330.6 kB / 377.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007666/0.3046, allocations: 465.3 kB / 378 MB, free: 21.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.306, allocations: 0.8058 MB / 378.8 MB, free: 20.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3061, allocations: 3.125 kB / 378.8 MB, free: 20.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002313/0.3084, allocations: 1.116 MB / 379.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.3084, allocations: 5.875 kB / 380 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.3084, allocations: 3.719 kB / 380 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00058/0.309, allocations: 186.5 kB / 380.1 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009219/0.31, allocations: 198.7 kB / 380.3 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003565/0.3135, allocations: 2.898 MB / 383.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008659/0.3144, allocations: 32.59 kB / 383.3 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-05/0.3145, allocations: 34.52 kB / 383.3 MB, free: 17.75 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.0004246/0.3149, allocations: 230 kB / 383.5 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.3151, allocations: 83.42 kB / 383.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.3153, allocations: 91.61 kB / 383.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3153, allocations: 10.56 kB / 383.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.249e-05/0.3154, allocations: 7.438 kB / 383.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.3154, allocations: 3.797 kB / 383.7 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/0.3168, allocations: 0.8906 MB / 384.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3168, allocations: 0 / 384.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007989/0.3176, allocations: 151.8 kB / 384.8 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005731/0.3182, allocations: 184.2 kB / 384.9 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.645e-05/0.3183, allocations: 22.44 kB / 385 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003443/0.3217, allocations: 2.897 MB / 387.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3217, allocations: 1.188 kB / 387.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002829/0.3246, allocations: 1.429 MB / 389.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002179/0.3248, allocations: 147.7 kB / 389.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.3249, allocations: 20.8 kB / 389.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006313/0.3256, allocations: 48.48 kB / 389.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.3257, allocations: 51.83 kB / 389.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/0.3258, allocations: 23.52 kB / 389.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005802/0.3264, allocations: 431.3 kB / 390 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.223e-06/0.3264, allocations: 96 / 390 MB, free: 13.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001068/0.3275, allocations: 244.5 kB / 390.2 MB, free: 13.57 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.0002382/0.3277, allocations: 134.8 kB / 390.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.3303, allocations: 1.065 MB / 391.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3303, allocations: 3.938 kB / 391.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.3315, allocations: 0.6343 MB / 392.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008958/0.3324, allocations: 154.3 kB / 392.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.3357, allocations: 2.051 MB / 394.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.3362, allocations: 0.9809 MB / 395.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.3365, allocations: 68.39 kB / 395.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3365, allocations: 4 kB / 395.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01827/0.3548, allocations: 14.93 MB / 410.2 MB, free: 13.77 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