Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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 3.2.3+maint.om/package.mo", uses=false) 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 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.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 109.4 kB / 18.4 MB, free: 4.664 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.001923/0.001924, allocations: 189.1 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 48.31 kB / 329.2 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09302, allocations: 46.61 MB / 375.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004574/0.09765, allocations: 2.716 MB / 378.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.09911, allocations: 0.7251 MB / 379.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.09929, allocations: 4 kB / 379.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.09951, allocations: 39.58 kB / 379.3 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.09971, allocations: 95.25 kB / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.1, allocations: 91.81 kB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004434/0.1005, allocations: 362.5 kB / 379.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.1007, allocations: 88.62 kB / 379.9 MB, free: 428 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.1009, allocations: 127.5 kB / 380.1 MB, free: 300 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.1011, allocations: 163.3 kB / 380.2 MB, free: 136 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.1012, allocations: 28 kB / 380.3 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.781e-05/0.1012, allocations: 32 kB / 380.3 MB, free: 76 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.1013, allocations: 63.7 kB / 380.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1716/0.273, allocations: 141.3 kB / 380.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004878/0.2735, allocations: 329.1 kB / 380.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2735, allocations: 0 / 380.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2735, allocations: 0 / 380.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2735, allocations: 0 / 380.8 MB, free: 10.07 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001241/0.2748, allocations: 0.6361 MB / 381.4 MB, free: 9.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2748, allocations: 13.48 kB / 381.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.631e-05/0.2749, allocations: 32.78 kB / 381.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.2753, allocations: 286.6 kB / 381.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.2753, allocations: 17.16 kB / 381.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.2754, allocations: 20.62 kB / 381.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.276, allocations: 245.8 kB / 382.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.276, allocations: 3.938 kB / 382.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.2761, allocations: 9.438 kB / 382.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2761, allocations: 4.125 kB / 382.1 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006974/0.2768, allocations: 244.9 kB / 382.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.2782, allocations: 0.8683 MB / 383.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008431/0.2791, allocations: 244 kB / 383.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.2794, allocations: 100.2 kB / 383.5 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2795, allocations: 7.844 kB / 383.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004514/0.2799, allocations: 179.1 kB / 383.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.513e-06/0.2799, allocations: 0 / 383.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002365/0.2823, allocations: 0.6702 MB / 384.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.2824, allocations: 115.2 kB / 384.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.2826, allocations: 266.3 kB / 384.7 MB, free: 8.398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.2827, allocations: 28.91 kB / 384.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.856e-05/0.2828, allocations: 176.7 kB / 384.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/0.2828, allocations: 43.69 kB / 385 MB, free: 8.223 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.683e-05/0.2829, allocations: 49.05 kB / 385 MB, free: 8.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.627e-05/0.2829, allocations: 335 kB / 385.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003363/0.2833, allocations: 109.3 kB / 385.5 MB, free: 7.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003533/0.2836, allocations: 180 kB / 385.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/0.2843, allocations: 281.5 kB / 385.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2843, allocations: 1.281 kB / 385.9 MB, free: 7.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001182/0.2855, allocations: 449 kB / 386.4 MB, free: 7.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.2855, allocations: 33.5 kB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.2855, allocations: 1.5 kB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003568/0.2859, allocations: 90.34 kB / 386.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.2861, allocations: 39.88 kB / 386.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.2885, allocations: 2.015 MB / 388.5 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.2889, allocations: 41.83 kB / 388.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.2889, allocations: 12.94 kB / 388.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003137/0.2893, allocations: 183.1 kB / 388.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002919/0.2896, allocations: 158.7 kB / 388.9 MB, free: 5.824 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004673/0.29, allocations: 247.4 kB / 389.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.284e-06/0.2901, allocations: 5.375 kB / 389.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0006972/0.2908, allocations: 329.2 kB / 389.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.2908, allocations: 41.69 kB / 389.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2908, allocations: 2.25 kB / 389.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-05/0.2909, allocations: 27.72 kB / 389.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.2911, allocations: 47.94 kB / 389.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006403/0.2918, allocations: 1.414 MB / 391 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.2921, allocations: 47.84 kB / 391.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.2921, allocations: 7.062 kB / 391.1 MB, free: 4.047 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.2922, allocations: 196.8 kB / 391.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.2923, allocations: 20.14 kB / 391.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.2923, allocations: 29.78 kB / 391.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.2923, allocations: 2.312 kB / 391.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.2923, allocations: 4.594 kB / 391.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.2923, allocations: 0.5625 kB / 391.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.2926, allocations: 299.7 kB / 391.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2926, allocations: 0.75 kB / 391.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.2928, allocations: 21.89 kB / 391.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.293, allocations: 78.34 kB / 391.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.2931, allocations: 3.25 kB / 391.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/0.295, allocations: 1.919 MB / 393.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2951, allocations: 1.531 kB / 393.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009945/0.2961, allocations: 363.4 kB / 394 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.2961, allocations: 108.7 kB / 394.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.2962, allocations: 2.828 kB / 394.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.2964, allocations: 37.7 kB / 394.1 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.094e-05/0.2965, allocations: 18.7 kB / 394.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.2965, allocations: 3.172 kB / 394.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00017/0.2967, allocations: 195.6 kB / 394.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2967, allocations: 1.281 kB / 394.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005462/0.2973, allocations: 119.2 kB / 394.5 MB, free: 1.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001177/0.2974, allocations: 108.8 kB / 394.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.299, allocations: 0.7602 MB / 395.3 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.299, allocations: 0 / 395.3 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004132/0.2994, allocations: 229.6 kB / 395.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.2997, allocations: 54.42 kB / 395.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.3026, allocations: 0.9179 MB / 396.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.3028, allocations: 0.7483 MB / 397.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.128e-05/0.3029, allocations: 25.34 kB / 397.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3029, allocations: 3.938 kB / 397.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of Templates: time 0.006614/0.3095, allocations: 4.252 MB / 401.6 MB, free: 14.89 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches