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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 58.31 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09463, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004535/0.09921, allocations: 3.164 MB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.1006, allocations: 0.8217 MB / 361.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.1008, allocations: 4 kB / 361.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.101, allocations: 67.36 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.1012, allocations: 103 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.1016, allocations: 115.8 kB / 361.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003617/0.1019, allocations: 410.2 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.1022, allocations: 143.7 kB / 362.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.1025, allocations: 163.4 kB / 362.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.1027, allocations: 175.2 kB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.701e-05/0.1027, allocations: 36 kB / 362.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.732e-05/0.1029, allocations: 39.98 kB / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.855e-05/0.1029, allocations: 87.69 kB / 362.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.1031, allocations: 187.1 kB / 363.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004064/0.1035, allocations: 422.8 kB / 363.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1035, allocations: 0 / 363.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1035, allocations: 0 / 363.5 MB, free: 8.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.066e-06/0.1036, allocations: 4 kB / 363.5 MB, free: 8.062 MB / 302.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.001067/0.1046, allocations: 0.6509 MB / 364.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.1047, allocations: 8.031 kB / 364.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.728e-05/0.1048, allocations: 78.66 kB / 364.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.105, allocations: 48.45 kB / 364.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.1054, allocations: 285.2 kB / 364.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.1055, allocations: 80.61 kB / 364.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.971e-05/0.1056, allocations: 32.38 kB / 364.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005807/0.1062, allocations: 342.7 kB / 365 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1062, allocations: 0 / 365 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.1063, allocations: 16 kB / 365 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1063, allocations: 11.94 kB / 365 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.1067, allocations: 218.5 kB / 365.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.1086, allocations: 1.368 MB / 366.6 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003701/0.1089, allocations: 166.5 kB / 366.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.1092, allocations: 96.81 kB / 366.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.1092, allocations: 3.984 kB / 366.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004302/0.1096, allocations: 157.4 kB / 367 MB, free: 4.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.1096, allocations: 0 / 367 MB, free: 4.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001162/0.1108, allocations: 411 kB / 367.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.1109, allocations: 102.8 kB / 367.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.1112, allocations: 266.6 kB / 367.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.1112, allocations: 29.7 kB / 367.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.1114, allocations: 211.8 kB / 368 MB, free: 3.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.43e-05/0.1114, allocations: 67.06 kB / 368.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.514e-05/0.1115, allocations: 62.03 kB / 368.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1117, allocations: 330.8 kB / 368.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.1119, allocations: 80.61 kB / 368.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.1121, allocations: 173.5 kB / 368.7 MB, free: 2.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.1124, allocations: 243.5 kB / 368.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1125, allocations: 0 / 368.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000746/0.1132, allocations: 344.4 kB / 369.3 MB, free: 1.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1132, allocations: 11.03 kB / 369.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1133, allocations: 7.938 kB / 369.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002631/0.1135, allocations: 52.81 kB / 369.4 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.1138, allocations: 63.91 kB / 369.4 MB, free: 1.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1539/0.2677, allocations: 1.572 MB / 371 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.2682, allocations: 44.23 kB / 371 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.2682, allocations: 10.73 kB / 371 MB, free: 19.62 MB / 302.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.0002098/0.2684, allocations: 153.9 kB / 371.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.318e-05/0.2685, allocations: 29.59 kB / 371.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.2686, allocations: 32.16 kB / 371.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2686, allocations: 7.031 kB / 371.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2686, allocations: 0 / 371.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.2686, allocations: 1.734 kB / 371.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004046/0.269, allocations: 341.2 kB / 371.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.269, allocations: 0.6562 kB / 371.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.2693, allocations: 38.45 kB / 371.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002184/0.2695, allocations: 51.84 kB / 371.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.2695, allocations: 5.391 kB / 371.7 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008863/0.2704, allocations: 1.42 MB / 373.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2704, allocations: 0.6094 kB / 373.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006577/0.2711, allocations: 355 kB / 373.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-05/0.2712, allocations: 121.7 kB / 373.6 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.2712, allocations: 6.25 kB / 373.6 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.2714, allocations: 19.42 kB / 373.6 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.812e-05/0.2715, allocations: 28.95 kB / 373.6 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.2715, allocations: 8.359 kB / 373.6 MB, free: 17.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.2717, allocations: 185.7 kB / 373.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2717, allocations: 0 / 373.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004006/0.2721, allocations: 86.98 kB / 373.9 MB, free: 17.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0008249/0.273, allocations: 0.8857 MB / 374.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005856/0.2736, allocations: 326.3 kB / 375.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2736, allocations: 4.156 kB / 375.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.2738, allocations: 197.4 kB / 375.3 MB, free: 16.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.2741, allocations: 40.78 kB / 375.3 MB, free: 16.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.2777, allocations: 2.92 MB / 378.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.2779, allocations: 0.7694 MB / 379 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.2781, allocations: 26.98 kB / 379.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.2782, allocations: 99.19 kB / 379.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2782, allocations: 0 / 379.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.3042, allocations: 5.927 MB / 385.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.27, allocations: 12.22 kB / 385.1 MB, free: 13.31 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > 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