Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.0013, allocations: 110.8 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3806, allocations: 50.54 MB / 410 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004764/0.3854, allocations: 3.158 MB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.387, allocations: 0.8139 MB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.3872, allocations: 4 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.3874, allocations: 63.36 kB / 414 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.3876, allocations: 111 kB / 414.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004568/0.3881, allocations: 115.8 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004554/0.3886, allocations: 418.1 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.3888, allocations: 139.7 kB / 414.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.3891, allocations: 167.4 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.3894, allocations: 171.2 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.183e-05/0.3894, allocations: 32 kB / 415.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.3895, allocations: 44 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.3896, allocations: 83.62 kB / 415.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.3898, allocations: 191.1 kB / 415.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.3903, allocations: 431.6 kB / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.455e-06/0.3903, allocations: 0 / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3904, allocations: 0 / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.3904, allocations: 0 / 415.8 MB, free: 11.64 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00125/0.3916, allocations: 0.651 MB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.3917, allocations: 8.031 kB / 416.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002491/0.392, allocations: 48.48 kB / 416.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004922/0.3925, allocations: 297 kB / 416.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.3926, allocations: 76.62 kB / 416.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.323e-05/0.3927, allocations: 32.38 kB / 417 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006231/0.3933, allocations: 342.8 kB / 417.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3933, allocations: 4 kB / 417.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.3934, allocations: 8 kB / 417.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.3934, allocations: 8 kB / 417.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004385/0.3938, allocations: 222.5 kB / 417.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.3958, allocations: 1.36 MB / 418.9 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003466/0.3961, allocations: 162.5 kB / 419 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.3963, allocations: 92.75 kB / 419.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.3964, allocations: 12 kB / 419.1 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.3966, allocations: 152.8 kB / 419.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.3966, allocations: 0 / 419.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001059/0.3977, allocations: 403.1 kB / 419.7 MB, free: 7.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.3978, allocations: 110.8 kB / 419.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.398, allocations: 262.7 kB / 420.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3981, allocations: 29.7 kB / 420.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.3982, allocations: 207.9 kB / 420.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.905e-05/0.3983, allocations: 71 kB / 420.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/0.3984, allocations: 65.94 kB / 420.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3985, allocations: 342.8 kB / 420.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.3987, allocations: 80.56 kB / 420.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/0.3989, allocations: 173.5 kB / 421 MB, free: 6.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.3993, allocations: 243.5 kB / 421.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3993, allocations: 4 kB / 421.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006642/0.4, allocations: 340.2 kB / 421.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.4, allocations: 8 kB / 421.6 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4, allocations: 4.344 kB / 421.6 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/0.4003, allocations: 56.75 kB / 421.6 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.4006, allocations: 63.91 kB / 421.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/0.4022, allocations: 1.564 MB / 423.3 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.4025, allocations: 47.83 kB / 423.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.4025, allocations: 15.98 kB / 423.3 MB, free: 3.594 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.4027, allocations: 156.5 kB / 423.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.069e-05/0.4027, allocations: 31.62 kB / 423.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.4028, allocations: 30.11 kB / 423.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.4028, allocations: 3.984 kB / 423.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4028, allocations: 8 kB / 423.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.4029, allocations: 112.8 kB / 423.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.403, allocations: 7.984 kB / 423.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.4032, allocations: 23.97 kB / 423.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.4032, allocations: 15.97 kB / 423.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000564/0.4038, allocations: 301 kB / 424 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005444/0.4044, allocations: 450.2 kB / 424.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000139/0.4045, allocations: 76 kB / 424.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.4047, allocations: 186 kB / 424.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of Backend: time 3.6e-07/0.4047, allocations: 0 / 424.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008204/0.4055, allocations: 339.2 kB / 425 MB, free: 1.82 MB / 334.1 MB Notification: Performance of SimCode: time 0.001226/0.4067, allocations: 1.075 MB / 426.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of Templates: time 0.007149/0.4139, allocations: 3.371 MB / 429.5 MB, free: 13.34 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches