Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002207/0.002208, allocations: 180.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.472/3.472, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001489/0.001489, allocations: 85.44 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006062/0.000607, allocations: 12 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7104/0.7111, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2574/0.9686, allocations: 80.21 MB / 455.9 MB, free: 428 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006505/0.9694, allocations: 71.97 kB / 456 MB, free: 356 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07884/1.048, allocations: 14.31 MB / 470.3 MB, free: 1.973 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.594e-06/1.048, allocations: 4 kB / 470.3 MB, free: 1.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001532/1.049, allocations: 20 kB / 470.3 MB, free: 1.949 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.005877/1.055, allocations: 1.122 MB / 471.5 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001084/1.055, allocations: 8.031 kB / 471.5 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007582/1.055, allocations: 107.7 kB / 471.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/1.057, allocations: 0.509 MB / 472.1 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/1.057, allocations: 58.38 kB / 472.1 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000309/1.058, allocations: 84.36 kB / 472.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003435/1.061, allocations: 0.8849 MB / 473.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/1.061, allocations: 192 / 473.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/1.061, allocations: 43.94 kB / 473.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.006e-05/1.061, allocations: 20 kB / 473.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003065/1.065, allocations: 0.812 MB / 474 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01121/1.076, allocations: 3.103 MB / 477.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002626/1.079, allocations: 0.6592 MB / 477.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/1.08, allocations: 418.4 kB / 478.1 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/1.08, allocations: 12.56 kB / 478.2 MB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001003/1.08, allocations: 43.12 kB / 478.2 MB, free: 9.836 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 9.398e-06/1.08, allocations: 0 / 478.2 MB, free: 9.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.01523/1.095, allocations: 2.366 MB / 480.6 MB, free: 7.398 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/1.096, allocations: 68 kB / 480.6 MB, free: 7.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/1.097, allocations: 0.4989 MB / 481.1 MB, free: 6.812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/1.098, allocations: 41.7 kB / 481.2 MB, free: 6.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007795/1.098, allocations: 391.5 kB / 481.6 MB, free: 6.375 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005085/1.099, allocations: 248.4 kB / 481.8 MB, free: 6.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.31e-05/1.099, allocations: 16 kB / 481.8 MB, free: 6.113 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00048/1.099, allocations: 378.7 kB / 482.2 MB, free: 5.734 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/1.101, allocations: 321.9 kB / 482.5 MB, free: 5.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/1.102, allocations: 437 kB / 482.9 MB, free: 4.957 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006926/1.109, allocations: 0.7663 MB / 483.7 MB, free: 4.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.769e-05/1.109, allocations: 0 / 483.7 MB, free: 4.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.005618/1.115, allocations: 1.064 MB / 484.8 MB, free: 3.082 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/1.115, allocations: 4 kB / 484.8 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/1.115, allocations: 4 kB / 484.8 MB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/1.116, allocations: 180.7 kB / 484.9 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/1.118, allocations: 199.7 kB / 485.1 MB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008034/1.126, allocations: 2.594 MB / 487.7 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/1.128, allocations: 39.98 kB / 487.8 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/1.128, allocations: 35.98 kB / 487.8 MB, free: 15.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001089/1.129, allocations: 229.7 kB / 488 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/1.129, allocations: 67.16 kB / 488.1 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/1.13, allocations: 86.17 kB / 488.2 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.389e-05/1.13, allocations: 8 kB / 488.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.595e-05/1.13, allocations: 8 kB / 488.2 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/1.13, allocations: 3.984 kB / 488.2 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/1.132, allocations: 0.8417 MB / 489 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/1.132, allocations: 0 / 489 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005551/1.138, allocations: 147.8 kB / 489.2 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/1.139, allocations: 180.7 kB / 489.4 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003179/1.14, allocations: 27.98 kB / 489.4 MB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007139/1.147, allocations: 2.611 MB / 492 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/1.147, allocations: 3.938 kB / 492 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005967/1.153, allocations: 1.408 MB / 493.4 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004953/1.158, allocations: 148.2 kB / 493.6 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005916/1.159, allocations: 12 kB / 493.6 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/1.16, allocations: 63.95 kB / 493.6 MB, free: 9.832 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000304/1.16, allocations: 52.61 kB / 493.7 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/1.16, allocations: 27.98 kB / 493.7 MB, free: 9.754 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009219/1.161, allocations: 346.9 kB / 494 MB, free: 9.418 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.161, allocations: 0 / 494 MB, free: 9.418 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001993/1.163, allocations: 236.1 kB / 494.3 MB, free: 9.188 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005981/1.164, allocations: 139.2 kB / 494.4 MB, free: 9.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004149/1.168, allocations: 1.013 MB / 495.4 MB, free: 8.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.148e-06/1.168, allocations: 0 / 495.4 MB, free: 8.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002717/1.171, allocations: 0.655 MB / 496.1 MB, free: 7.348 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/1.173, allocations: 126.3 kB / 496.2 MB, free: 7.223 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007839/1.181, allocations: 2.35 MB / 498.6 MB, free: 4.848 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/1.182, allocations: 0.9541 MB / 499.5 MB, free: 3.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006747/1.183, allocations: 63.41 kB / 499.6 MB, free: 3.801 MB / 378.7 MB Notification: Performance of SimCode: time 2.314e-06/1.183, allocations: 4 kB / 499.6 MB, free: 3.797 MB / 378.7 MB Notification: Performance of Templates: time 0.566/1.749, allocations: 13.48 MB / 0.501 GB, free: 103.9 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches