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.001653/0.001653, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0007609/0.000761, allocations: 106.3 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2459, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004586/0.2505, allocations: 4.954 MB / 380 MB, free: 41.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002985/0.2536, allocations: 1.402 MB / 381.4 MB, free: 40.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006919/0.2543, allocations: 18 kB / 381.4 MB, free: 40.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00029/0.2546, allocations: 114.2 kB / 381.6 MB, free: 40.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006821/0.2553, allocations: 236.1 kB / 381.8 MB, free: 40.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007617/0.2561, allocations: 227.9 kB / 382 MB, free: 39.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001504/0.2576, allocations: 1.125 MB / 383.1 MB, free: 39.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006211/0.2582, allocations: 359.6 kB / 383.5 MB, free: 38.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008573/0.2591, allocations: 369.2 kB / 383.8 MB, free: 38.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005743/0.2597, allocations: 442.3 kB / 384.3 MB, free: 38.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.2598, allocations: 55.19 kB / 384.3 MB, free: 38.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003011/0.2601, allocations: 87 kB / 384.4 MB, free: 38.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.2603, allocations: 174.7 kB / 384.6 MB, free: 38.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004418/0.2607, allocations: 477.3 kB / 385.1 MB, free: 37.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009579/0.2617, allocations: 1.052 MB / 386.1 MB, free: 37.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.2617, allocations: 4 kB / 386.1 MB, free: 37.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2617, allocations: 4 kB / 386.1 MB, free: 37.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.2617, allocations: 0 / 386.1 MB, free: 37.13 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00237/0.2641, allocations: 1.143 MB / 387.3 MB, free: 36.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.2642, allocations: 10.25 kB / 387.3 MB, free: 36.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.2644, allocations: 103.6 kB / 387.4 MB, free: 36.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006933/0.2651, allocations: 0.5007 MB / 387.9 MB, free: 35.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.2652, allocations: 62.44 kB / 387.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.2653, allocations: 84.28 kB / 388 MB, free: 35.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.2667, allocations: 0.9003 MB / 388.9 MB, free: 34.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.2667, allocations: 0 / 388.9 MB, free: 34.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.622e-05/0.2668, allocations: 32 kB / 388.9 MB, free: 34.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.2668, allocations: 20 kB / 389 MB, free: 34.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.2682, allocations: 0.8043 MB / 389.8 MB, free: 33.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.2726, allocations: 3.095 MB / 392.9 MB, free: 30.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009678/0.2736, allocations: 0.6623 MB / 393.5 MB, free: 29.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005789/0.2742, allocations: 426.4 kB / 393.9 MB, free: 29.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.513e-05/0.2743, allocations: 12.5 kB / 394 MB, free: 29.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.2743, allocations: 43.12 kB / 394 MB, free: 29.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 3.597e-06/0.2743, allocations: 0 / 394 MB, free: 29.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=71): time 0.004098/0.2784, allocations: 2.244 MB / 396.2 MB, free: 27.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.2785, allocations: 64.06 kB / 396.3 MB, free: 27.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.279, allocations: 0.5028 MB / 396.8 MB, free: 26.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.025e-05/0.279, allocations: 41.7 kB / 396.8 MB, free: 26.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.2792, allocations: 391.5 kB / 397.2 MB, free: 26.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.2794, allocations: 248.4 kB / 397.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.283e-05/0.2794, allocations: 16 kB / 397.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.316e-05/0.2795, allocations: 378.8 kB / 397.9 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000545/0.2801, allocations: 313.9 kB / 398.2 MB, free: 25.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005914/0.2807, allocations: 442.5 kB / 398.6 MB, free: 24.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.2818, allocations: 0.7663 MB / 399.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2818, allocations: 0 / 399.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001795/0.2836, allocations: 1.071 MB / 400.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.2837, allocations: 4 kB / 400.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.2837, allocations: 4 kB / 400.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005387/0.2842, allocations: 184.6 kB / 400.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008018/0.2851, allocations: 195.8 kB / 400.8 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00303/0.2881, allocations: 2.589 MB / 403.4 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007/0.2888, allocations: 43.98 kB / 403.4 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.841e-05/0.2889, allocations: 35.92 kB / 403.5 MB, free: 19.71 MB / 298.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.0003903/0.2893, allocations: 213.7 kB / 403.7 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.2894, allocations: 79.08 kB / 403.8 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001626/0.2896, allocations: 86.17 kB / 403.9 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.2896, allocations: 8 kB / 403.9 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.2896, allocations: 8 kB / 403.9 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2896, allocations: 3.984 kB / 403.9 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000893/0.2905, allocations: 0.8378 MB / 404.7 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2906, allocations: 0 / 404.7 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.2912, allocations: 147.8 kB / 404.9 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000518/0.2918, allocations: 195.8 kB / 405 MB, free: 18.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.402e-05/0.2918, allocations: 15.98 kB / 405.1 MB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.2948, allocations: 2.607 MB / 407.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.2948, allocations: 0 / 407.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.297, allocations: 1.42 MB / 409.1 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.2973, allocations: 144.3 kB / 409.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.678e-05/0.2974, allocations: 19.94 kB / 409.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005477/0.2979, allocations: 63.95 kB / 409.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.2981, allocations: 48.77 kB / 409.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.821e-05/0.2981, allocations: 27.98 kB / 409.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003521/0.2985, allocations: 350.8 kB / 409.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2985, allocations: 0 / 409.7 MB, free: 13.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007903/0.2993, allocations: 228 kB / 410 MB, free: 13 MB / 298.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.0002383/0.2995, allocations: 127.1 kB / 410.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.3015, allocations: 1.017 MB / 411.1 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.3015, allocations: 0 / 411.1 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.3028, allocations: 0.6549 MB / 411.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008336/0.3036, allocations: 122.2 kB / 411.9 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002836/0.3064, allocations: 2.338 MB / 414.2 MB, free: 8.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.3068, allocations: 0.95 MB / 415.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.307, allocations: 63.41 kB / 415.2 MB, free: 7.641 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3071, allocations: 4 kB / 415.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of Templates: time 0.01634/0.3234, allocations: 13.49 MB / 428.7 MB, free: 10.15 MB / 314.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/jenkins/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