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.001391/0.001391, allocations: 101.5 kB / 18.39 MB, free: 4.66 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.001638/0.001639, allocations: 183 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.596/1.596, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001307/0.001307, allocations: 47.92 kB / 329.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 46.61 MB / 375.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004862/0.1178, allocations: 2.712 MB / 378.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1198, allocations: 0.7251 MB / 379.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003659/0.1202, allocations: 3.938 kB / 379.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.1205, allocations: 43.58 kB / 379.3 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003688/0.1209, allocations: 91.25 kB / 379.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.1213, allocations: 99.8 kB / 379.5 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005638/0.1219, allocations: 358.5 kB / 379.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.1221, allocations: 88.69 kB / 380 MB, free: 416 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.1224, allocations: 131.5 kB / 380.1 MB, free: 284 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.1227, allocations: 151.3 kB / 380.2 MB, free: 132 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.374e-05/0.1228, allocations: 28 kB / 380.3 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.943e-05/0.1228, allocations: 32 kB / 380.3 MB, free: 72 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.131e-05/0.1229, allocations: 67.69 kB / 380.4 MB, free: 4 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2499/0.3729, allocations: 140.6 kB / 380.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005629/0.3735, allocations: 324.3 kB / 380.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3735, allocations: 0 / 380.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3735, allocations: 0 / 380.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.3735, allocations: 2.844 kB / 380.8 MB, free: 10.09 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.001354/0.3749, allocations: 0.6417 MB / 381.5 MB, free: 9.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/0.375, allocations: 12.8 kB / 381.5 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.3751, allocations: 33.67 kB / 381.5 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.3755, allocations: 284 kB / 381.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.3756, allocations: 15.92 kB / 381.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/0.3756, allocations: 20.59 kB / 381.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006618/0.3763, allocations: 248.1 kB / 382.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3763, allocations: 5.312 kB / 382.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.3764, allocations: 8.734 kB / 382.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.3764, allocations: 5.5 kB / 382.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007759/0.3772, allocations: 244.6 kB / 382.3 MB, free: 9.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3788, allocations: 0.8665 MB / 383.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009473/0.3798, allocations: 240.9 kB / 383.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003733/0.3802, allocations: 103.1 kB / 383.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.3802, allocations: 2.344 kB / 383.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005521/0.3808, allocations: 185.9 kB / 383.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.246e-06/0.3808, allocations: 0 / 383.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002687/0.3835, allocations: 0.6708 MB / 384.4 MB, free: 8.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/0.3836, allocations: 110.7 kB / 384.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.3839, allocations: 267.8 kB / 384.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.3839, allocations: 35.08 kB / 384.8 MB, free: 8.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3841, allocations: 179.6 kB / 384.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.222e-05/0.3841, allocations: 38.33 kB / 385 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.494e-05/0.3842, allocations: 48.14 kB / 385 MB, free: 8.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.289e-05/0.3843, allocations: 337.6 kB / 385.4 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.3847, allocations: 109.4 kB / 385.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.3851, allocations: 178.9 kB / 385.6 MB, free: 7.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.3858, allocations: 282.3 kB / 385.9 MB, free: 7.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3858, allocations: 1.5 kB / 385.9 MB, free: 7.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001258/0.3871, allocations: 452 kB / 386.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.3871, allocations: 33.69 kB / 386.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3871, allocations: 3.188 kB / 386.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.3876, allocations: 77.64 kB / 386.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.3879, allocations: 47.48 kB / 386.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.3907, allocations: 2.01 MB / 388.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.3911, allocations: 46.98 kB / 388.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/0.3911, allocations: 10.48 kB / 388.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003672/0.3915, allocations: 185.2 kB / 388.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003294/0.3918, allocations: 154.8 kB / 388.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005267/0.3924, allocations: 244.3 kB / 389.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.905e-06/0.3924, allocations: 1.094 kB / 389.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008025/0.3932, allocations: 328.6 kB / 389.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.506e-05/0.3932, allocations: 37.08 kB / 389.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3932, allocations: 5.094 kB / 389.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.907e-05/0.3933, allocations: 32.39 kB / 389.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.3936, allocations: 43.41 kB / 389.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007599/0.3943, allocations: 1.413 MB / 391 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.3947, allocations: 52.36 kB / 391.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.3947, allocations: 7.281 kB / 391.1 MB, free: 4.031 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.0001297/0.3948, allocations: 195.4 kB / 391.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.3949, allocations: 24.02 kB / 391.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.3949, allocations: 26.8 kB / 391.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.3949, allocations: 1.469 kB / 391.3 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3949, allocations: 9.438 kB / 391.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3949, allocations: 1.219 kB / 391.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000315/0.3953, allocations: 303.1 kB / 391.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3953, allocations: 1.188 kB / 391.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.3954, allocations: 20.56 kB / 391.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002824/0.3957, allocations: 79.17 kB / 391.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.3957, allocations: 2.703 kB / 391.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002287/0.398, allocations: 1.919 MB / 393.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3981, allocations: 0.5156 kB / 393.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.3992, allocations: 359.6 kB / 394 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.234e-05/0.3993, allocations: 105 kB / 394.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.3993, allocations: 5.969 kB / 394.1 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.3996, allocations: 33.27 kB / 394.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.3997, allocations: 25.2 kB / 394.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3997, allocations: 2.125 kB / 394.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.3999, allocations: 193 kB / 394.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3999, allocations: 0 / 394.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007264/0.4007, allocations: 123.1 kB / 394.5 MB, free: 1.5 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.0001882/0.4009, allocations: 96.75 kB / 394.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002064/0.403, allocations: 0.7617 MB / 395.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.403, allocations: 1.219 kB / 395.3 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005499/0.4035, allocations: 235.1 kB / 395.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000424/0.404, allocations: 52.19 kB / 395.6 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.4074, allocations: 0.9285 MB / 396.5 MB, free: 496 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.4078, allocations: 0.7485 MB / 397.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.362e-05/0.4079, allocations: 20.67 kB / 397.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4079, allocations: 0 / 397.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of Templates: time 0.009227/0.4171, allocations: 4.236 MB / 401.5 MB, free: 14.88 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